Skip to content

Commit 6dbe54b

Browse files
committed
configure pytest to run only unit tests by default, and include integration tests only when explicitly specified.
Signed-off-by: Teo <[email protected]>
1 parent 2c3b19d commit 6dbe54b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ max_line_length = 120
9999
[tool.pytest.ini_options]
100100
asyncio_mode = "auto"
101101
asyncio_default_fixture_loop_scope = "module" # WARNING: Changing this may break tests. A `module`-scoped session might be faster, but also unstable.
102-
test_paths = [
103-
"tests",
104-
]
105-
addopts = "--tb=short -p no:warnings --import-mode=importlib"
102+
testpaths = ["tests/unit"] # Default to unit tests
103+
addopts = "--tb=short -p no:warnings --import-mode=importlib --ignore=tests/integration" # Ignore integration by default
106104
pythonpath = ["."]
107105
faulthandler_timeout = 30 # Reduced from 60
108106
timeout = 60 # Reduced from 300

0 commit comments

Comments
 (0)