-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpytest.ini
More file actions
42 lines (36 loc) · 1.03 KB
/
Copy pathpytest.ini
File metadata and controls
42 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[pytest]
# Pytest configuration for trading system tests
# Prevents async operations from hanging and ensures proper cleanup
# Test discovery patterns
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Async test configuration
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Timeout configuration (prevent hanging tests)
timeout = 300
timeout_method = thread
# Test output
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
--durations=10
--maxfail=20
-p no:warnings
# Markers
markers =
asyncio: marks tests that use asyncio event loop
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
async: marks tests as async tests
requires_api: marks tests that require external APIs
requires_secrets: marks tests that require secrets
# Coverage (if pytest-cov is installed)
# [tool:pytest]
# coverage = true
# coverage_report = term-missing