Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyleeow committed Mar 8, 2024
1 parent 595b088 commit 088441e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,16 @@ 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

0 comments on commit 088441e

Please sign in to comment.