Skip to content

Commit

Permalink
fix: do not check for exactly one plugin in registry tests (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester authored Oct 4, 2024
1 parent 0f26fe3 commit 755e64e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion snakemake_interface_common/plugin_registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def register_cli_args(self, argparser):
plugin.register_cli_args(argparser)

def collect_plugins(self):
"""Collect plugins and call _register_plugin for each."""
"""Collect plugins and call register_plugin for each."""
self.plugins = dict()

# Executor plugins are externally installed plugins named
Expand Down
3 changes: 0 additions & 3 deletions snakemake_interface_common/plugin_registry/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ def get_example_args(self) -> List[str]:

def test_registry_collect_plugins(self):
registry = self.get_registry()
assert (
len(registry.plugins) == 1
), "we assume that only one plugin is installed in test environment"
plugin = registry.get_plugin(self.get_test_plugin_name())
self.validate_plugin(plugin)

Expand Down

0 comments on commit 755e64e

Please sign in to comment.