@@ -258,7 +258,7 @@ def decorator(_pytestbdd_function):
258258
259259
260260def 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 ):
262262 """Scenario decorator.
263263
264264 :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
272272 caller_function = caller_function or get_caller_function ()
273273
274274 # 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 )
277277 if strict_gherkin is None :
278278 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 )
280280
281281 # Get the sc_enario
282282 try :
@@ -306,9 +306,9 @@ def scenario(feature_name, scenario_name, encoding="utf-8", example_converters=N
306306 )
307307
308308
309- def get_feature_base_dir (caller_module ):
309+ def get_features_base_dir (caller_module ):
310310 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 )
312312
313313
314314def get_from_ini (key , default ):
@@ -352,9 +352,9 @@ def scenarios(*feature_paths, **kwargs):
352352 frame = inspect .stack ()[1 ]
353353 module = inspect .getmodule (frame [0 ])
354354
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 )
358358
359359 strict_gherkin = kwargs .get ('strict_gherkin' )
360360 if strict_gherkin is None :
@@ -363,7 +363,7 @@ def scenarios(*feature_paths, **kwargs):
363363 abs_feature_paths = []
364364 for path in feature_paths :
365365 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 ))
367367 abs_feature_paths .append (path )
368368 found = False
369369
0 commit comments