Skip to content

Commit

Permalink
Minor fixup at re step matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
elchupanebrej committed Dec 31, 2023
1 parent 7ad6dc6 commit f3d2642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_bdd/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse_arguments(
name,
anonymous_group_names: Optional[Iterable[str]] = None,
):
match = cast(Match, self.regex.match(name)) # Can't be None because is already matched
match = cast(Match, self.regex.fullmatch(name)) # Can't be None because is already matched
group_dict = match.groupdict()
if anonymous_group_names is not None:
group_dict.update(
Expand Down

0 comments on commit f3d2642

Please sign in to comment.