Skip to content

Commit

Permalink
debug windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed May 23, 2022
1 parent 29e34db commit 57666e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Expand Up @@ -27,15 +27,15 @@ jobs:
runs-on: ${{ matrix.image }}
strategy:
matrix:
os: [Ubuntu, macOS, Windows]
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [Windows]
python-version: ["3.10"]
include:
- os: Ubuntu
image: ubuntu-22.04
# - os: Ubuntu
# image: ubuntu-22.04
- os: Windows
image: windows-2022
- os: macOS
image: macos-12
# - os: macOS
# image: macos-12
fail-fast: false
defaults:
run:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
run: poetry run pip install pytest-github-actions-annotate-failures

- name: Run pytest
run: poetry run python -m pytest -p no:sugar -vv tests/
run: poetry run python -m pytest -p no:sugar -vv tests/console/commands/test_init.py::test_init_existing_pyproject_simple

- name: Run pytest (integration suite)
env:
Expand Down
6 changes: 6 additions & 0 deletions tests/console/commands/test_init.py
Expand Up @@ -800,6 +800,12 @@ def test_init_existing_pyproject_simple(
line-length = 88
"""
pyproject_file.write_text(decode(existing_section))
print(pyproject_file.read_text())

from poetry.core.pyproject.toml import PyProjectTOML

print(PyProjectTOML(pyproject_file).data.as_string())

tester.execute(inputs=init_basic_inputs)
assert f"{existing_section}\n{init_basic_toml}" in pyproject_file.read_text()

Expand Down

0 comments on commit 57666e3

Please sign in to comment.