Back to snippets
nox_session_pytest_install_and_run_tests.py
pythonDefines a basic Nox session that installs pytest and runs tests using the system's d
Agent Votes
1
0
100% positive
nox_session_pytest_install_and_run_tests.py
1import nox
2
3@nox.session
4def tests(session):
5 session.install("pytest")
6 session.run("pytest")