Skip to content

Commit

Permalink
qa: fix unit test
Browse files Browse the repository at this point in the history
The unit test had an issue
  • Loading branch information
carstencodes committed Mar 21, 2024
1 parent e2b92e5 commit d12a6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def register_command(

@staticmethod
def add_config(name: str, config_item: ConfigItem) -> None:
_registered_configurations[str] = config_item
_registered_configurations[name] = config_item

@fixture
def registrations() -> Generator:
Expand All @@ -62,7 +62,7 @@ def test_registration_command_name(registrations) -> None:
def test_registered_config_items(registrations) -> None:
core: _CoreStub = _CoreStub()
main(core)
assert len(_registered_configurations) == 0, "No config item has been registered"
assert len(_registered_configurations) == 6, "Six config items have been registered"


SUB_TEST_PARAMS_WHAT_SUCCESS: Iterable[tuple[str, str]] = [
Expand Down

0 comments on commit d12a6b6

Please sign in to comment.