diff --git a/features/steps/plugin_executing_state_steps.py b/features/steps/plugin_executing_state_steps.py index b9e451b88..615d5e80b 100644 --- a/features/steps/plugin_executing_state_steps.py +++ b/features/steps/plugin_executing_state_steps.py @@ -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."""