-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hazardous behaviour of ScenarioDefinition.getstep()
#79
Labels
bug
Something isn't working
Comments
Possible solutions:
|
alxroyer
added a commit
that referenced
this issue
May 9, 2023
Implementation details: - `StepSpecificationType` augmented with a tuple option: (spec, index): - `StepDefinitionHelper.matchspecification()` and `specificationdescription()` updated consequently. - `index` parameters removed from `ScenarioDefinition.getstep()` and `expectstep()`. - `ScenarioDefinition.getstep()` implementation updated. - `step_specification` parameters made mandatory by the way.
alxroyer
added a commit
that referenced
this issue
May 9, 2023
alxroyer
added a commit
that referenced
this issue
Jun 16, 2023
# Conflicts: # src/scenario/_assertionhelpers.py # src/scenario/_assertions.py # src/scenario/_scenariodefinition.py # src/scenario/_scenariorunner.py # src/scenario/_stepuserapi.py
alxroyer
added a commit
that referenced
this issue
Jun 16, 2023
Implementation details: - `StepSpecificationType` refactored and split as `StepDefinitionSpecification` and `StepExecutionSpecification` classes. - Step specification classes and types exported with the `scenario` package. - `index` parameters removed from `ScenarioDefinition.getstep()` and `expectstep()`. Miscellaneous: - `StepExecution` internal methods hidden in a `StepExecutionHelper` class. - `Assertions` routines implementation improvements: `asserttimeinstep()` and `asserttimeinsteps()` - Delivery documentation improved.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depending on the context, the
ScenarioDefinition.getstep()
may return hazardous step references, especially when theindex
parameter is set with a negative value (-1
by default).When called while building the scenario, the method returns the latest step up to what has been built then.
When the same call occurs when the scenario is under execution, the scenario has been fully built at this time, thus a future step can be returned.
The text was updated successfully, but these errors were encountered: