Skip to content

Commit 2dd8865

Browse files
youtuxolegpidsadnyi
authored andcommitted
Fix docs
1 parent 6b492d6 commit 2dd8865

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,8 @@ Feature file paths
10051005
By default, pytest-bdd will use current module's path as base path for finding feature files, but this behaviour can be changed in the pytest configuration file (i.e. `pytest.ini`, `tox.ini` or `setup.cfg`) by declaring the new base path in the `bdd_features_base_dir` key. The path is interpreted as relative to the working directory when starting pytest.
10061006
You can also override features base path on a per-scenario basis, in order to override the path for specific tests.
10071007

1008+
pytest.ini:
1009+
10081010
.. code-block:: ini
10091011
10101012
[pytest]
@@ -1035,10 +1037,7 @@ Avoid retyping the feature file name
10351037
------------------------------------
10361038

10371039
If you want to avoid retyping the feature file name when defining your scenarios in a test file, use functools.partial.
1038-
This will make your life much easier when defining multiple scenarios in a test file.
1039-
1040-
For example:
1041-
1040+
This will make your life much easier when defining multiple scenarios in a test file. For example:
10421041

10431042
test_publish_article.py:
10441043

0 commit comments

Comments
 (0)