Hwandji commited on
Commit
ccb01ca
·
1 Parent(s): 5f0cbee

fix: add pytest.ini with asyncio_mode=auto

Browse files

- Add pytest.ini configuration file
- Set asyncio_mode=auto for pytest-asyncio
- Enables automatic detection of async test functions
- No need for @pytest .mark.asyncio decorators

Resolves: async def functions are not natively supported

Files changed (1) hide show
  1. pytest.ini +25 -0
pytest.ini ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [pytest]
2
+ # pytest-asyncio configuration
3
+ asyncio_mode = auto
4
+
5
+ # Test discovery patterns
6
+ python_files = test_*.py *_test.py
7
+ python_classes = Test*
8
+ python_functions = test_*
9
+
10
+ # Coverage settings
11
+ addopts =
12
+ --verbose
13
+ --strict-markers
14
+ --tb=short
15
+ --cov-report=term-missing
16
+
17
+ # Test paths
18
+ testpaths = backend/tests backend
19
+
20
+ # Markers for test categorization
21
+ markers =
22
+ slow: marks tests as slow (deselect with '-m "not slow"')
23
+ integration: marks tests as integration tests
24
+ unit: marks tests as unit tests
25
+ e2e: marks tests as end-to-end tests