@@ -258,7 +258,7 @@ def decorator(_pytestbdd_function):
258
258
259
259
260
260
def scenario (feature_name , scenario_name , encoding = "utf-8" , example_converters = None ,
261
- caller_module = None , caller_function = None , feature_base_dir = None , strict_gherkin = None ):
261
+ caller_module = None , caller_function = None , features_base_dir = None , strict_gherkin = None ):
262
262
"""Scenario decorator.
263
263
264
264
:param str feature_name: Feature file name. Absolute or relative to the configured feature base path.
@@ -272,11 +272,11 @@ def scenario(feature_name, scenario_name, encoding="utf-8", example_converters=N
272
272
caller_function = caller_function or get_caller_function ()
273
273
274
274
# Get the feature
275
- if feature_base_dir is None :
276
- feature_base_dir = get_feature_base_dir (caller_module )
275
+ if features_base_dir is None :
276
+ features_base_dir = get_features_base_dir (caller_module )
277
277
if strict_gherkin is None :
278
278
strict_gherkin = get_strict_gherkin ()
279
- feature = Feature .get_feature (feature_base_dir , feature_name , encoding = encoding , strict_gherkin = strict_gherkin )
279
+ feature = Feature .get_feature (features_base_dir , feature_name , encoding = encoding , strict_gherkin = strict_gherkin )
280
280
281
281
# Get the sc_enario
282
282
try :
@@ -306,9 +306,9 @@ def scenario(feature_name, scenario_name, encoding="utf-8", example_converters=N
306
306
)
307
307
308
308
309
- def get_feature_base_dir (caller_module ):
309
+ def get_features_base_dir (caller_module ):
310
310
default_base_dir = os .path .dirname (caller_module .__file__ )
311
- return get_from_ini ('bdd_feature_base_dir ' , default_base_dir )
311
+ return get_from_ini ('bdd_features_base_dir ' , default_base_dir )
312
312
313
313
314
314
def get_from_ini (key , default ):
@@ -352,9 +352,9 @@ def scenarios(*feature_paths, **kwargs):
352
352
frame = inspect .stack ()[1 ]
353
353
module = inspect .getmodule (frame [0 ])
354
354
355
- feature_base_dir = kwargs .get ('feature_base_dir ' )
356
- if feature_base_dir is None :
357
- feature_base_dir = get_feature_base_dir (module )
355
+ features_base_dir = kwargs .get ('features_base_dir ' )
356
+ if features_base_dir is None :
357
+ features_base_dir = get_features_base_dir (module )
358
358
359
359
strict_gherkin = kwargs .get ('strict_gherkin' )
360
360
if strict_gherkin is None :
@@ -363,7 +363,7 @@ def scenarios(*feature_paths, **kwargs):
363
363
abs_feature_paths = []
364
364
for path in feature_paths :
365
365
if not os .path .isabs (path ):
366
- path = os .path .abspath (os .path .join (feature_base_dir , path ))
366
+ path = os .path .abspath (os .path .join (features_base_dir , path ))
367
367
abs_feature_paths .append (path )
368
368
found = False
369
369
0 commit comments