Skip to content

Commit ca89177

Browse files
authored
tests: make tests forward-compatible with refactoring in poetry-core#773 (#9754)
1 parent 0e1bedc commit ca89177

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/test_factory.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,18 @@ def test_create_poetry_with_packages_and_includes(
207207
{"include": "src_package", "from": "src"},
208208
]
209209

210-
assert package.include == [
211-
{"path": "extra_dir/vcs_excluded.txt", "format": []},
212-
{"path": "notes.txt", "format": []},
213-
]
210+
assert package.include in (
211+
# with https://github.com/python-poetry/poetry-core/pull/773
212+
[
213+
{"path": "extra_dir/vcs_excluded.txt"},
214+
{"path": "notes.txt"},
215+
],
216+
# without https://github.com/python-poetry/poetry-core/pull/773
217+
[
218+
{"path": "extra_dir/vcs_excluded.txt", "format": []},
219+
{"path": "notes.txt", "format": []},
220+
],
221+
)
214222

215223

216224
def test_create_poetry_with_multi_constraints_dependency(

0 commit comments

Comments
 (0)