We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a453c5 commit b2f1018Copy full SHA for b2f1018
src/pytest_bdd/parser.py
@@ -21,7 +21,7 @@
21
from .gherkin_parser import get_gherkin_document
22
from .types import STEP_TYPE_BY_PARSER_KEYWORD
23
24
-STEP_PARAM_RE = re.compile(r"<(.+?)>")
+PARAM_RE = re.compile(r"<(.+?)>")
25
26
27
def render_string(input_string: str, render_context: Mapping[str, object]) -> str:
@@ -42,7 +42,7 @@ def replacer(m: re.Match) -> str:
42
# If the context contains the variable, replace it. Otherwise, leave it unchanged.
43
return str(render_context.get(varname, f"<{varname}>"))
44
45
- return STEP_PARAM_RE.sub(replacer, input_string)
+ return PARAM_RE.sub(replacer, input_string)
46
47
48
def get_tag_names(tag_data: list[GherkinTag]) -> set[str]:
0 commit comments