Skip to content

Commit

Permalink
Testing: Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 26, 2022
1 parent 4bf50e1 commit 60d9bb2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spyder/plugins/completion/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions spyder/plugins/preferences/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/pylint/tests/test_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 60d9bb2

Please sign in to comment.