Skip to content

Commit

Permalink
Add test case for invalid distribution format
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Feb 3, 2021
1 parent 3c759bd commit 6f631b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/test_nox_poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def test_installroot(session: Session, distribution_format: str) -> None:
nox_poetry.installroot(session, distribution_format=distribution_format)


def test_installroot_invalid_format(session: Session) -> None:
"""It raises an error."""
with pytest.raises(ValueError):
nox_poetry.installroot(session, distribution_format="egg")


@pytest.mark.parametrize(
"distribution_format",
[
Expand Down

0 comments on commit 6f631b2

Please sign in to comment.