habitmove/noxfile.py
Marty Oehme 851b14591f
Allow passing through arguments to pytest
Can enable running individual tests or supllying any other arguments.
Will remove the default argument `--cov`.
2021-12-15 15:54:13 +01:00

9 lines
210 B
Python

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", *args)
pass