diff --git a/spyder/plugins/completion/tests/conftest.py b/spyder/plugins/completion/tests/conftest.py index 4d037eccfd0..15811cd2ad7 100644 --- a/spyder/plugins/completion/tests/conftest.py +++ b/spyder/plugins/completion/tests/conftest.py @@ -59,7 +59,7 @@ def register_plugin(self, plugin_name, external=False): plugin = PLUGIN_REGISTRY.get_plugin(plugin_name) plugin._register() - def get_plugin(self, plugin_name): + def get_plugin(self, plugin_name, error=True): if plugin_name in PLUGIN_REGISTRY: return PLUGIN_REGISTRY.get_plugin(plugin_name) diff --git a/spyder/plugins/preferences/tests/conftest.py b/spyder/plugins/preferences/tests/conftest.py index 33b55907197..bc140e604f9 100644 --- a/spyder/plugins/preferences/tests/conftest.py +++ b/spyder/plugins/preferences/tests/conftest.py @@ -65,7 +65,7 @@ def register_plugin(self, plugin_name, external=False): plugin = PLUGIN_REGISTRY.get_plugin(plugin_name) plugin._register(omit_conf=True) - def get_plugin(self, plugin_name): + def get_plugin(self, plugin_name, error=True): if plugin_name in PLUGIN_REGISTRY: return PLUGIN_REGISTRY.get_plugin(plugin_name) @@ -88,7 +88,7 @@ def register_plugin(self, plugin_name, external=False): plugin = PLUGIN_REGISTRY.get_plugin(plugin_name) plugin._register() - def get_plugin(self, plugin_name, error=False): + def get_plugin(self, plugin_name, error=True): if plugin_name in PLUGIN_REGISTRY: return PLUGIN_REGISTRY.get_plugin(plugin_name) return None diff --git a/spyder/plugins/pylint/tests/test_pylint.py b/spyder/plugins/pylint/tests/test_pylint.py index 858d114668e..8ace68ebeb2 100644 --- a/spyder/plugins/pylint/tests/test_pylint.py +++ b/spyder/plugins/pylint/tests/test_pylint.py @@ -75,7 +75,7 @@ def __init__(self): 'projects': self.projects } - def get_plugin(self, plugin_name): + def get_plugin(self, plugin_name, error=True): return PLUGIN_REGISTRY.get_plugin(plugin_name) diff --git a/spyder/plugins/workingdirectory/tests/test_workingdirectory.py b/spyder/plugins/workingdirectory/tests/test_workingdirectory.py index 685a0616d72..607a3312b85 100644 --- a/spyder/plugins/workingdirectory/tests/test_workingdirectory.py +++ b/spyder/plugins/workingdirectory/tests/test_workingdirectory.py @@ -32,7 +32,7 @@ def __init__(self): self._cli_options = get_options(sys_argv)[0] super().__init__() - def get_plugin(self, plugin): + def get_plugin(self, plugin, error=True): return Mock()