in noxfile.py [0:0]
def run_tests(session: nox.Session, default_dir: str):
session.run("poetry", "install", external=True)
if session.posargs:
test_files = session.posargs
else:
test_files = [default_dir]
session.run("pytest", *test_files)