7 lines
279 B
INI
7 lines
279 B
INI
[pytest]
|
|
testpaths = tests
|
|
python_files = *_test.py test_*.py
|
|
; 各包测试文件名与 C++ 测试文件对齐,跨包存在同名(如 config_test.py):
|
|
; importlib 模式使 pytest 不再按裸模块名导入,避免 basename 冲突。
|
|
addopts = --import-mode=importlib
|