Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct tests handling paths to files where paths to directories are expected #8947

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/console/commands/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def test_display_empty_repositories_setting(
) -> None:
tester = command_tester_factory(
"config",
poetry=Factory().create_poetry(fixture_dir("with_empty_repositories_key")),
poetry=Factory().create_poetry(fixture_dir("with_local_config")),
)
tester.execute("repositories")

Expand Down
4 changes: 2 additions & 2 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def test_create_poetry_fails_on_invalid_configuration(
fixture_dir: FixtureDirGetter,
) -> None:
with pytest.raises(RuntimeError) as e:
Factory().create_poetry(fixture_dir("invalid_pyproject") / "pyproject.toml")
Factory().create_poetry(fixture_dir("invalid_pyproject"))

fastjsonschema_error = "data must contain ['description'] properties"
custom_error = "The fields ['description'] are required in package mode."
Expand All @@ -541,7 +541,7 @@ def test_create_poetry_fails_on_nameless_project(
fixture_dir: FixtureDirGetter,
) -> None:
with pytest.raises(RuntimeError) as e:
Factory().create_poetry(fixture_dir("nameless_pyproject") / "pyproject.toml")
Factory().create_poetry(fixture_dir("nameless_pyproject"))

fastjsonschema_error = "data must contain ['name'] properties"
custom_error = "The fields ['name'] are required in package mode."
Expand Down
Loading