diff --git a/noxfile.py b/noxfile.py index 082ac78..f056b7a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,6 +3,7 @@ import nox @nox.session(python=["3.7", "3.8", "3.9"]) def tests(session): + args = session.posargs or ["--cov"] session.run("poetry", "install", external=True) - session.run("pytest", "--cov") + session.run("pytest", *args) pass diff --git a/pyproject.toml b/pyproject.toml index 914b0dd..f90ff08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,6 @@ click = "^8.0" [tool.poetry.dev-dependencies] pytest = "^6.2" coverage = {extras = ["toml"], version = "^6.2"} - pytest-cov = "^3.0.0" pytest-mock = "^3.6.1"