Skip to content

Commit

Permalink
configure pytest to run only unit tests by default, and include integ…
Browse files Browse the repository at this point in the history
…ration tests only when explicitly specified.

Signed-off-by: Teo <[email protected]>
  • Loading branch information
teocns committed Jan 12, 2025
1 parent 2c3b19d commit 6dbe54b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ max_line_length = 120
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "module" # WARNING: Changing this may break tests. A `module`-scoped session might be faster, but also unstable.
test_paths = [
"tests",
]
addopts = "--tb=short -p no:warnings --import-mode=importlib"
testpaths = ["tests/unit"] # Default to unit tests
addopts = "--tb=short -p no:warnings --import-mode=importlib --ignore=tests/integration" # Ignore integration by default
pythonpath = ["."]
faulthandler_timeout = 30 # Reduced from 60
timeout = 60 # Reduced from 300
Expand Down

0 comments on commit 6dbe54b

Please sign in to comment.