Skip to content

Commit ed45c5e

Browse files
sliwinski-miloszyoutux
authored andcommitted
Revert fix for getting the parser as it has been moved to separate pull request
1 parent 46644c3 commit ed45c5e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pytest_bdd/scenario.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,10 @@ def find_argumented_step_fixture_name(name, type_, fixturemanager, request=None)
5858
# happens to be that _arg2fixturedefs is changed during the iteration so we use a copy
5959
for fixturename, fixturedefs in list(fixturemanager._arg2fixturedefs.items()):
6060
for fixturedef in fixturedefs:
61-
if fixturedef.func.__name__ == 'lazy_step_func':
62-
func = fixturedef.func()
63-
else:
64-
func = fixturedef.func
65-
66-
parser = getattr(func, "parser", None)
61+
parser = getattr(fixturedef.func, "parser", None)
6762
match = parser.is_matching(name) if parser else None
6863
if match:
69-
converters = getattr(func, "converters", {})
64+
converters = getattr(fixturedef.func, "converters", {})
7065
for arg, value in parser.parse_arguments(name).items():
7166
if arg in converters:
7267
value = converters[arg](value)

0 commit comments

Comments
 (0)