Skip to content

Commit

Permalink
update nox to run tests for all directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tilen1976 committed Aug 1, 2024
1 parent f36f9c2 commit 6871137
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,16 @@ def tests(session: Session) -> None:
session.install(
"coverage[toml]", "pytest", "pygments", "pytest-mock", "requests-mock", "faker"
)
# Use `PYTHONPATH` to include the `src` directory
session.env["PYTHONPATH"] = "src"
try:
session.run(
"coverage",
"run",
"--parallel",
"-m",
"pytest",
"-o",
"pythonpath=",
"--tb=short",
*session.posargs,
)
finally:
Expand Down

0 comments on commit 6871137

Please sign in to comment.