Skip to content

Commit 9ef0cc1

Browse files
finswimmerradoering
authored andcommitted
test: fix test due to changes in poetry-core
Related to poetry-core#805
1 parent 1a9132c commit 9ef0cc1

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

poetry.lock

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "2.0.0"
44
description = "Python dependency management and packaging made easy."
55
requires-python = ">=3.9,<4.0"
66
dependencies = [
7-
"poetry-core (==2.0.0)",
7+
"poetry-core @ git+https://github.com/python-poetry/poetry-core@main",
88
"build (>=1.2.1,<2.0.0)",
99
"cachecontrol[filecache] (>=0.14.0,<0.15.0)",
1010
"cleo (>=2.1.0,<3.0.0)",

tests/test_factory.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,25 +198,25 @@ def test_create_poetry_with_packages_and_includes(
198198
package = poetry.package
199199

200200
assert package.packages == [
201-
{"include": "extra_dir/**/*.py"},
202-
{"include": "extra_dir/**/*.py"},
203-
{"include": "my_module.py"},
204-
{"include": "package_with_include"},
205-
{"include": "tests", "format": "sdist"},
201+
{"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]},
202+
{"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]},
203+
{"include": "my_module.py", "format": ["sdist", "wheel"]},
204+
{"include": "package_with_include", "format": ["sdist", "wheel"]},
205+
{"include": "tests", "format": ["sdist"]},
206206
{"include": "for_wheel_only", "format": ["wheel"]},
207-
{"include": "src_package", "from": "src"},
207+
{"include": "src_package", "from": "src", "format": ["sdist", "wheel"]},
208208
]
209209

210210
assert package.include in (
211211
# with https://github.com/python-poetry/poetry-core/pull/773
212212
[
213-
{"path": "extra_dir/vcs_excluded.txt"},
214-
{"path": "notes.txt"},
213+
{"path": "extra_dir/vcs_excluded.txt", "format": ["sdist", "wheel"]},
214+
{"path": "notes.txt", "format": ["sdist"]},
215215
],
216216
# without https://github.com/python-poetry/poetry-core/pull/773
217217
[
218-
{"path": "extra_dir/vcs_excluded.txt", "format": []},
219-
{"path": "notes.txt", "format": []},
218+
{"path": "extra_dir/vcs_excluded.txt", "format": ["sdist"]},
219+
{"path": "notes.txt", "format": ["sdist"]},
220220
],
221221
)
222222

0 commit comments

Comments
 (0)