mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-06-04 07:26:50 +00:00
21 lines
1.2 KiB
INI
21 lines
1.2 KiB
INI
[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
|