Skip to content

Commit b36e2fe

Browse files
authored
Update conftest.py
1 parent 4cacc93 commit b36e2fe

File tree

1 file changed

+12
-0
lines changed
  • {{cookiecutter.project_slug}}/tests/scenarios

1 file changed

+12
-0
lines changed

{{cookiecutter.project_slug}}/tests/scenarios/conftest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
steps are not implemented.
66
"""
77

8+
import pytest
9+
810
from pathlib import Path
911

1012
from pytest_bdd.feature import get_features
@@ -52,3 +54,13 @@ def pytest_configure() -> None:
5254
if not file_path.exists():
5355
with Path.open(file_path, "w") as f:
5456
f.write(txt)
57+
58+
59+
def pytest_bdd_apply_tag(tag, function):
60+
if tag == 'todo':
61+
marker = pytest.mark.skip(reason="Not implemented yet")
62+
marker(function)
63+
return True
64+
else:
65+
# Fall back to the default behavior of pytest-bdd
66+
return None

0 commit comments

Comments
 (0)