@@ -621,7 +621,7 @@ The target PyTest fixture "article" gets the return value and any other step can
621
621
Given I have a beautiful article
622
622
When I publish this article
623
623
624
- When step is referring the article to publish it.
624
+ The When step is referencing the `` article `` to publish it.
625
625
626
626
.. code-block :: python
627
627
@@ -673,7 +673,7 @@ This way side-effects were applied to our article and PyTest makes sure that all
673
673
steps that require the "article" fixture will receive the same object. The value
674
674
of the "published_article" and the "article" fixtures is the same object.
675
675
676
- Fixtures are evaluated only once within the PyTest scope and their values are cached.
676
+ Fixtures are evaluated ** only once ** within the PyTest scope and their values are cached.
677
677
678
678
679
679
Backgrounds
@@ -746,7 +746,7 @@ Then this fixture can be reused with other names using given():
746
746
Reusing steps
747
747
-------------
748
748
749
- It is possible to define some common steps in the parent conftest.py and
749
+ It is possible to define some common steps in the parent `` conftest.py `` and
750
750
simply expect them in the child test file.
751
751
752
752
.. code-block :: gherkin
@@ -1010,24 +1010,24 @@ Hooks
1010
1010
pytest-bdd exposes several `pytest hooks <https://docs.pytest.org/en/7.1.x/reference/reference.html#hooks >`_
1011
1011
which might be helpful building useful reporting, visualization, etc. on top of it:
1012
1012
1013
- * pytest_bdd_before_scenario(request, feature, scenario) - Called before scenario is executed
1013
+ * ` pytest_bdd_before_scenario(request, feature, scenario) ` - Called before scenario is executed
1014
1014
1015
- * pytest_bdd_after_scenario(request, feature, scenario) - Called after scenario is executed
1015
+ * ` pytest_bdd_after_scenario(request, feature, scenario) ` - Called after scenario is executed
1016
1016
(even if one of steps has failed)
1017
1017
1018
- * pytest_bdd_before_step(request, feature, scenario, step, step_func) - Called before step function
1018
+ * ` pytest_bdd_before_step(request, feature, scenario, step, step_func) ` - Called before step function
1019
1019
is executed and it's arguments evaluated
1020
1020
1021
- * pytest_bdd_before_step_call(request, feature, scenario, step, step_func, step_func_args) - Called before step
1021
+ * ` pytest_bdd_before_step_call(request, feature, scenario, step, step_func, step_func_args) ` - Called before step
1022
1022
function is executed with evaluated arguments
1023
1023
1024
- * pytest_bdd_after_step(request, feature, scenario, step, step_func, step_func_args) - Called after step function
1024
+ * ` pytest_bdd_after_step(request, feature, scenario, step, step_func, step_func_args) ` - Called after step function
1025
1025
is successfully executed
1026
1026
1027
- * pytest_bdd_step_error(request, feature, scenario, step, step_func, step_func_args, exception) - Called when step
1027
+ * ` pytest_bdd_step_error(request, feature, scenario, step, step_func, step_func_args, exception) ` - Called when step
1028
1028
function failed to execute
1029
1029
1030
- * pytest_bdd_step_func_lookup_error(request, feature, scenario, step, exception) - Called when step lookup failed
1030
+ * ` pytest_bdd_step_func_lookup_error(request, feature, scenario, step, exception) ` - Called when step lookup failed
1031
1031
1032
1032
1033
1033
Browser testing
0 commit comments