Skip to content

Commit

Permalink
Correct tests to plugin count
Browse files Browse the repository at this point in the history
  • Loading branch information
CyclingNinja committed Sep 16, 2024
1 parent 6169782 commit bd6fd92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glue/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_load_plugins(capsys):
if ('loaded' or 'succeeded') in acall[0][0]:
plugins.append(acall[0][0].split(' ')[1])

assert len(plugins) == 5
assert len(plugins) == 4
assert 'coordinate_helpers' in plugins


Expand All @@ -45,7 +45,7 @@ def test_no_duplicate_loading(capsys):
assert 'glue.plugins.wcs_autolinking' in loaded_plugins
assert 'glue.core.data_exporters' in loaded_plugins
assert 'glue.plugins.coordinate_helpers' in loaded_plugins
assert len(loaded_plugins) == 5
assert len(loaded_plugins) == 4


def test_list_loaded_plugins():
Expand All @@ -55,7 +55,7 @@ def test_list_loaded_plugins():
load_plugins(require_qt_plugins=False)
plugins = list_loaded_plugins()
assert isinstance(plugins, list)
assert len(plugins) == 5
assert len(plugins) == 4
for test_plugin in REQUIRED_PLUGINS:
assert test_plugin in plugins

Expand All @@ -66,7 +66,7 @@ def test_list_available_plugins():
"""
available_plugins = list_available_plugins()
assert isinstance(available_plugins, list)
assert len(available_plugins) == 7
assert len(available_plugins) == 6
assert 'glue.plugins.wcs_autolinking' in available_plugins
assert 'glue.core.data_exporters' in available_plugins
assert 'glue.plugins.coordinate_helpers' in available_plugins

0 comments on commit bd6fd92

Please sign in to comment.