@@ -152,8 +152,8 @@ def test_scenario_2():
152
152
return example
153
153
154
154
155
- @when ("tests are run" )
156
- def tests_are_run (testdir , test_execution ):
155
+ @when ("I run tests " )
156
+ def run_tests (testdir , test_execution ):
157
157
test_execution ['regular' ] = testdir .runpytest ()
158
158
test_execution ['gherkin' ] = testdir .runpytest ('--gherkin-terminal-reporter' )
159
159
@@ -173,20 +173,20 @@ def output_must_be_the_same_as_regular_reporter(test_execution):
173
173
assert l1 == l2
174
174
175
175
176
- @when ("tests are run with verbose mode" )
177
- def tests_are_run_with_verbose_mode (testdir , test_execution ):
176
+ @when ("I run tests with verbose mode" )
177
+ def run_tests_with_verbose_mode (testdir , test_execution ):
178
178
test_execution ['regular' ] = testdir .runpytest ('-v' )
179
179
test_execution ['gherkin' ] = testdir .runpytest ('--gherkin-terminal-reporter' , '-v' )
180
180
181
181
182
- @when ("tests are run with very verbose mode" )
183
- def tests_are_run_with_very_verbose_mode (testdir , test_execution ):
182
+ @when ("I run tests with very verbose mode" )
183
+ def run_tests_with_very_verbose_mode (testdir , test_execution ):
184
184
test_execution ['regular' ] = testdir .runpytest ('-vv' )
185
185
test_execution ['gherkin' ] = testdir .runpytest ('--gherkin-terminal-reporter' , '-vv' )
186
186
187
187
188
- @when ("tests are run with step expanded mode" )
189
- def tests_are_run_with_step_expanded_mode (testdir , test_execution ):
188
+ @when ("I run tests with step expanded mode" )
189
+ def run_tests_with_step_expanded_mode (testdir , test_execution ):
190
190
test_execution ['regular' ] = testdir .runpytest ('-vv' )
191
191
test_execution ['gherkin' ] = testdir .runpytest (
192
192
'--gherkin-terminal-reporter' ,
@@ -238,8 +238,8 @@ def gherkin_scenario_without_implementation(testdir):
238
238
""" )
239
239
240
240
241
- @when ('tests are run with any verbosity mode' )
242
- def tests_are_run_with_any_verbosity_mode (
241
+ @when ('I run tests with any verbosity mode' )
242
+ def run_tests_with_any_verbosity_mode (
243
243
test_execution , verbosity_mode , testdir ,
244
244
gherkin_scenario_without_implementation ):
245
245
# test_execution['gherkin'] = testdir.runpytest(
@@ -323,8 +323,8 @@ def test_scenario_1():
323
323
""" )
324
324
325
325
326
- @when ('tests are run with --showlocals' )
327
- def tests_are_run_with___showlocals (test_execution , testdir ):
326
+ @when ('I run tests with --showlocals' )
327
+ def run_tests_with___showlocals (test_execution , testdir ):
328
328
test_execution ['gherkin' ] = testdir .runpytest ('--gherkin-terminal-reporter' , '--showlocals' )
329
329
330
330
0 commit comments