Skip to content

Commit

Permalink
test: fix test due to changes in poetry-core
Browse files Browse the repository at this point in the history
Related to poetry-core#805
  • Loading branch information
finswimmer authored and abn committed Jan 9, 2025
1 parent 1a9132c commit 0e4f0e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
18 changes: 11 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "2.0.0"
description = "Python dependency management and packaging made easy."
requires-python = ">=3.9,<4.0"
dependencies = [
"poetry-core (==2.0.0)",
"poetry-core @ git+https://github.com/python-poetry/poetry-core@main",
"build (>=1.2.1,<2.0.0)",
"cachecontrol[filecache] (>=0.14.0,<0.15.0)",
"cleo (>=2.1.0,<3.0.0)",
Expand Down
20 changes: 10 additions & 10 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,25 +198,25 @@ def test_create_poetry_with_packages_and_includes(
package = poetry.package

assert package.packages == [
{"include": "extra_dir/**/*.py"},
{"include": "extra_dir/**/*.py"},
{"include": "my_module.py"},
{"include": "package_with_include"},
{"include": "tests", "format": "sdist"},
{"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]},
{"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]},
{"include": "my_module.py", "format": ["sdist", "wheel"]},
{"include": "package_with_include", "format": ["sdist", "wheel"]},
{"include": "tests", "format": ["sdist"]},
{"include": "for_wheel_only", "format": ["wheel"]},
{"include": "src_package", "from": "src"},
{"include": "src_package", "from": "src", "format": ["sdist", "wheel"]},
]

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

Expand Down

0 comments on commit 0e4f0e7

Please sign in to comment.