fix(plugins): resolve step definition conflicts and update feature file

This commit is contained in:
2026-04-24 05:32:53 +00:00
committed by Forgejo
parent 391c9f4fe7
commit 09d51237f0
+1 -11
View File
@@ -128,20 +128,10 @@ def step_manually_set_state(context: Context, name: str, state: str) -> None:
# ---------------------------------------------------------------------------
# State assertions
# Exception assertions
# ---------------------------------------------------------------------------
@then('the plugin "{name}" state should be "{expected_state}"')
def step_plugin_state_should_be(context: Context, name: str, expected_state: str) -> None:
"""Assert that a plugin is in the expected state."""
descriptor = context.manager.get_plugin(name)
assert descriptor.state == PluginState(expected_state), (
f"Expected plugin '{name}' to be in state '{expected_state}', "
f"but it is in state '{descriptor.state}'"
)
@then("a PluginError should be raised")
def step_plugin_error_raised(context: Context) -> None:
"""Assert that a PluginError was raised."""