You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If a pytest-steps test is generator-style, `results_bag` will behave like a
515
+
cross-step fixture.
516
+
517
+
- If the test is explict-style, `results_bag` will behave like a per-step fixture.
518
+
519
+
This isnot very intuitive and it is easy to get lost. Besides you may wish to have an opposite behaviour than the above. For all these reasons, you should rather use the following built-in two fixtures:
520
+
521
+
-`step_bag`is a version of `results_bag`, decorated with [`@one_fixture_per_step`](/api_reference/#one_fixture_per_step)
522
+
523
+
-`cross_bag`is a version of `results_bag`, decorated with [`@cross_step_fixture`](/api_reference/#cross_step_fixture).
524
+
525
+
See also [API reference](api_reference/#pytest-harvest-fixtures).
0 commit comments