Skip to content

Commit

Permalink
tests: add config to scan only tests directory
Browse files Browse the repository at this point in the history
Add a config entry to constrain pytest's search for test files and
functions to only the 'tests/' directory.  This avoids error messages
about read-only subdirectories, like you get when running squid.

Signed-off-by: Eric Fahlgren <[email protected]>
  • Loading branch information
efahl authored and aparcar committed Oct 15, 2024
1 parent 695dd4f commit e348820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ show_contexts = "true"
title = "ASU Server Regression Test Coverage"


[tool.pytest.ini_options]
testpaths = [
"tests"
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit e348820

Please sign in to comment.