Skip to content

Commit 3b15397

Browse files
Relay fixture results to recursive call of 'get_features'.
1 parent a26ce26 commit 3b15397

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pytest_bdd/feature.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ def get_features(paths, **kwargs):
154154
if path not in seen_names:
155155
seen_names.add(path)
156156
if op.isdir(path):
157-
features.extend(get_features(glob2.iglob(op.join(path, "**", "*.feature"))))
157+
features.extend(
158+
get_features(
159+
glob2.iglob(op.join(path, "**", "*.feature")),
160+
**kwargs
161+
)
162+
)
158163
else:
159164
base, name = op.split(path)
160165
feature = Feature.get_feature(base, name, **kwargs)

0 commit comments

Comments
 (0)