Skip to content

Commit 507b084

Browse files
authored
formatting in documentation
1 parent 796a949 commit 507b084

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ The target PyTest fixture "article" gets the return value and any other step can
621621
Given I have a beautiful article
622622
When I publish this article
623623
624-
When step is referring the article to publish it.
624+
The When step is referencing the ``article`` to publish it.
625625

626626
.. code-block:: python
627627
@@ -673,7 +673,7 @@ This way side-effects were applied to our article and PyTest makes sure that all
673673
steps that require the "article" fixture will receive the same object. The value
674674
of the "published_article" and the "article" fixtures is the same object.
675675

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.
677677

678678

679679
Backgrounds
@@ -746,7 +746,7 @@ Then this fixture can be reused with other names using given():
746746
Reusing steps
747747
-------------
748748

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
750750
simply expect them in the child test file.
751751

752752
.. code-block:: gherkin
@@ -1010,24 +1010,24 @@ Hooks
10101010
pytest-bdd exposes several `pytest hooks <https://docs.pytest.org/en/7.1.x/reference/reference.html#hooks>`_
10111011
which might be helpful building useful reporting, visualization, etc. on top of it:
10121012

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
10141014

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
10161016
(even if one of steps has failed)
10171017

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
10191019
is executed and it's arguments evaluated
10201020

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
10221022
function is executed with evaluated arguments
10231023

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
10251025
is successfully executed
10261026

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
10281028
function failed to execute
10291029

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
10311031

10321032

10331033
Browser testing

0 commit comments

Comments
 (0)