From 56c261c10fd9ce149379ae7cd8537f6cdaa3ca37 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Wed, 2 Dec 2020 03:14:40 +0100 Subject: [PATCH] Add unit test for sdist installation --- tests/unit/test_nox_poetry.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_nox_poetry.py b/tests/unit/test_nox_poetry.py index 701ad528..eb73ee0e 100644 --- a/tests/unit/test_nox_poetry.py +++ b/tests/unit/test_nox_poetry.py @@ -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: