test(plugins): accept scan_decision_cb in _install_plugin_core test stubs
Sibling-test blast radius: main's TestInstallResolution fake_core stubs pin the old _install_plugin_core signature; the scanning feature adds the scan_decision_cb kwarg, so the real cmd_install call site now passes it. Widen the three stubs to accept it.
This commit is contained in:
@@ -329,7 +329,7 @@ class TestInstallResolution:
|
||||
)
|
||||
captured = {}
|
||||
|
||||
def fake_core(identifier, *, force, ref=None):
|
||||
def fake_core(identifier, *, force, ref=None, scan_decision_cb=None):
|
||||
captured["identifier"] = identifier
|
||||
captured["ref"] = ref
|
||||
raise plugins_cmd.PluginOperationError("stop here")
|
||||
@@ -348,7 +348,7 @@ class TestInstallResolution:
|
||||
)
|
||||
captured = {}
|
||||
|
||||
def fake_core(identifier, *, force, ref=None):
|
||||
def fake_core(identifier, *, force, ref=None, scan_decision_cb=None):
|
||||
captured["ref"] = ref
|
||||
raise plugins_cmd.PluginOperationError("stop here")
|
||||
|
||||
@@ -401,7 +401,7 @@ class TestInstallResolution:
|
||||
monkeypatch.setattr(plugin_index, "load_index", boom)
|
||||
captured = {}
|
||||
|
||||
def fake_core(identifier, *, force, ref=None):
|
||||
def fake_core(identifier, *, force, ref=None, scan_decision_cb=None):
|
||||
captured["identifier"] = identifier
|
||||
captured["ref"] = ref
|
||||
raise plugins_cmd.PluginOperationError("stop here")
|
||||
|
||||
Reference in New Issue
Block a user