fix(plugins): resolve step definition conflicts and update feature file
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user