-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpytest.ini
35 lines (30 loc) · 1.09 KB
/
pytest.ini
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
[pytest]
asyncio_mode = auto
testpaths = tests
python_files = test_*.py
pythonpath = .
timeout = 30
# 保留其他有用的配置
markers =
basic: 基础测试用例
slow: 运行较慢的测试
integration: 集成测试
asyncio: mark test as an async test
remote: 远程测试
filterwarnings =
ignore:numpy.core._multiarray_umath is deprecated:DeprecationWarning
ignore:builtin type SwigPyPacked has no __module__ attribute:DeprecationWarning
ignore:builtin type SwigPyObject has no __module__ attribute:DeprecationWarning
ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning
# 忽略 litellm 的 open_text 废弃警告
ignore:open_text is deprecated.*:DeprecationWarning
# 忽略 pydantic 的 config 废弃警告,修改为使用通用的 DeprecationWarning
ignore:Support for class-based.*:DeprecationWarning
# 忽略 docling_core 的弃用警告
ignore::DeprecationWarning:docling_core.*
log_cli = true
log_cli_level = INFO
# asyncio 配置
required_plugins = pytest-asyncio
# 修正日志配置
addopts = --show-capture=log