AmbiguousStep error caused all 8 features to error: plugin_executing_state_steps.py
re-defined 6 steps already present in plugin_architecture_steps.py:
- @then("a PluginError should be raised")
- @then("a PluginNotFoundError should be raised")
- @then('the plugin error message should contain "{text}"')
- @when('I attempt to deactivate the plugin "{name}"')
- @given("the PluginState enum is available")
- @then('it should have values ...')
Remove all duplicates, keeping only the 6 new steps unique to this feature.
Also fix the last scenario where `And I attempt to execute method on unknown plugin`
followed a `Given` step (so behave treated it as `given` context, not matching
the `@when` definition). Changed `And` to `When`.
ISSUES CLOSED: #5691
- Added execute_plugin() method to PluginManager that properly sets PluginState.EXECUTING before calling a plugin method
- Transitions state back to ACTIVATED on success, or ERRORED on failure
- Completes the lifecycle state machine defined in PluginState enum
- Added BDD feature file features/plugin_executing_state.feature with scenarios covering state transitions
- Added step definitions in features/steps/plugin_executing_state_steps.py
ISSUES CLOSED: #5691