feat: add pytest timeout and strict markers
- Add --timeout=60 to pytest.ini to catch hanging tests - Add --strict-markers to enforce declared markers only - Install pytest-timeout>=2.0.0 dependency - All 627 tests pass within 60s timeout
This commit is contained in:
parent
9e5066cf1d
commit
d6458a5b53
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[pytest]
|
||||
addopts = -m "not live and not docker"
|
||||
addopts = -m "not live and not docker" --timeout=60 --strict-markers
|
||||
markers =
|
||||
live: tests requiring server access (run with '-m live')
|
||||
docker: tests requiring Docker (run with '-m docker')
|
||||
|
|
|
|||
|
|
@ -40,3 +40,6 @@ numpy>=1.24.0
|
|||
|
||||
# Sample data generation
|
||||
faker>=24.0.0
|
||||
|
||||
# Testing
|
||||
pytest-timeout>=2.0.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue