mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-02 05:17:23 +08:00
test: preserve ruff ratchet baseline
This commit is contained in:
@@ -466,9 +466,7 @@ def test_loader_executes_each_instance_in_an_isolated_module_namespace(
|
||||
import_scanner=lambda **_kwargs: None,
|
||||
log=_logger(),
|
||||
)
|
||||
def validator(candidate):
|
||||
"""判断候选类是否提供插件实例初始化入口。"""
|
||||
return hasattr(candidate, "init_plugin")
|
||||
validator = lambda candidate: hasattr(candidate, "init_plugin")
|
||||
import app.plugins as plugin_package
|
||||
|
||||
source_module = ModuleType("app.plugins.demoplugin")
|
||||
|
||||
Reference in New Issue
Block a user