Skip to content

Commit

Permalink
tests: make tests forward-compatible with refactoring in poetry-core#…
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored and Secrus committed Oct 27, 2024
1 parent c6375a3 commit 23a39e9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,18 @@ def test_create_poetry_with_packages_and_includes(
{"include": "src_package", "from": "src"},
]

assert package.include == [
{"path": "extra_dir/vcs_excluded.txt", "format": []},
{"path": "notes.txt", "format": []},
]
assert package.include in (
# with https://github.com/python-poetry/poetry-core/pull/773
[
{"path": "extra_dir/vcs_excluded.txt"},
{"path": "notes.txt"},
],
# without https://github.com/python-poetry/poetry-core/pull/773
[
{"path": "extra_dir/vcs_excluded.txt", "format": []},
{"path": "notes.txt", "format": []},
],
)


def test_create_poetry_with_multi_constraints_dependency(
Expand Down

0 comments on commit 23a39e9

Please sign in to comment.