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

TST Fix test_conversion_missing #341

Merged
merged 2 commits into from
Mar 8, 2024
Merged
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
10 changes: 8 additions & 2 deletions tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,18 @@ def test_conversion_entry_point_string(npe1_repo, mock_npe1_pm_with_plugin):


def test_conversion_missing():
with pytest.raises(ModuleNotFoundError), pytest.warns(UserWarning):
with pytest.raises(
PackageNotFoundError,
match="No package or entry point found with name",
):
manifest_from_npe1("does-not-exist-asdf6as987")


def test_conversion_package_is_not_a_plugin():
with pytest.raises(PackageNotFoundError):
with pytest.raises(
PackageNotFoundError,
match="No package or entry point found with name",
):
manifest_from_npe1("pytest")


Expand Down
Loading