Skip to content

Commit 6503691

Browse files
authored
Merge pull request #723 from pytest-dev/remove-strict
Fix references to "strict" options
2 parents a10b5a4 + 4b437c7 commit 6503691

File tree

2 files changed

+1
-114
lines changed

2 files changed

+1
-114
lines changed

README.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ scenario test, so we can use standard test selection:
760760
pytest -m "backend and login and successful"
761761
762762
The feature and scenario markers are not different from standard pytest markers, and the ``@`` symbol is stripped out automatically to allow test selector expressions. If you want to have bdd-related tags to be distinguishable from the other test markers, use a prefix like ``bdd``.
763-
Note that if you use pytest with the ``--strict`` option, all bdd tags mentioned in the feature files should be also in the ``markers`` setting of the ``pytest.ini`` config. Also for tags please use names which are python-compatible variable names, i.e. start with a non-number, only underscores or alphanumeric characters, etc. That way you can safely use tags for tests filtering.
763+
Note that if you use pytest with the ``--strict-markers`` option, all Gherkin tags mentioned in the feature files should be also in the ``markers`` setting of the ``pytest.ini`` config. Also for tags please use names which are python-compatible variable names, i.e. start with a non-number, only underscores or alphanumeric characters, etc. That way you can safely use tags for tests filtering.
764764

765765
You can customize how tags are converted to pytest marks by implementing the
766766
``pytest_bdd_apply_tag`` hook and returning ``True`` from it:
@@ -892,8 +892,6 @@ About best practices for Background, please read Gherkin's
892892
related to actions and consuming outcomes; that is in conflict with the
893893
aim of "Background" - to prepare the system for tests or "put the system
894894
in a known state" as "Given" does it.
895-
The statement above applies to strict Gherkin mode, which is
896-
enabled by default.
897895

898896

899897
Reusing fixtures

tests/feature/test_no_strict_gherkin.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)