Skip to content

Commit

Permalink
Add unit test for sdist installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Dec 2, 2020
1 parent 8713037 commit 56c261c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/test_nox_poetry.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
"""Unit tests."""
import pytest
from nox.sessions import Session

import nox_poetry


def test_install(session: Session) -> None:
@pytest.mark.parametrize("distribution_format", [nox_poetry.WHEEL, nox_poetry.SDIST])
def test_install(
session: Session, distribution_format: nox_poetry.DistributionFormat
) -> None:
"""It installs the dependencies."""
nox_poetry.install(session, nox_poetry.WHEEL, "pip")
nox_poetry.install(session, distribution_format, "pip")


def test_export_requirements(session: Session) -> None:
Expand Down

0 comments on commit 56c261c

Please sign in to comment.