Files
archived-MoviePilot-Plugins/pytest.ini
2026-06-03 19:27:17 +08:00

21 lines
1.2 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[pytest]
# 仅在仓库根 tests/ 下发现用例插件目录plugins/、plugins.v2/)不再承载测试
testpaths = tests
python_files = test_*.py
# unittest.TestCase 子类无论命名都会被收集;此项额外兼容将来可能出现的纯函数式测试类
python_classes = *Test Test*
python_functions = test_*
# v1/v2 必须分会话运行同名插件包冲突marker 供后续按代筛选扩展使用
markers =
v1: v1 插件plugins/)单测,需与 v2 分独立会话运行
v2: v2 插件plugins.v2/)单测,需与 v1 分独立会话运行
# 仅忽略主程序依赖链或三方库在 Python 3.12 下的已知弃用告警;插件仓自身告警应直接修复
filterwarnings =
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning
ignore:websockets.legacy is deprecated:DeprecationWarning
ignore:websockets.InvalidStatusCode is deprecated:DeprecationWarning
ignore:pkg_resources is deprecated as an API:DeprecationWarning
ignore:Deprecated call to .pkg_resources.declare_namespace:DeprecationWarning
ignore:'crypt' is deprecated:DeprecationWarning
ignore:'audioop' is deprecated:DeprecationWarning