Skip to content

Commit fa29345

Browse files
committed
Modify report test
- the PR proposes to expand the step with an additional skipped bool, to track weather the step has been skipped or not, therefor the expected behaviour of the steps in the tests should be modified
1 parent d158910 commit fa29345

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/feature/test_report.py

+10
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
119119
"keyword": "Given",
120120
"line_number": 6,
121121
"name": u"a passing step",
122+
"skipped": False,
122123
"type": "given",
123124
},
124125
{
@@ -127,6 +128,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
127128
"keyword": "And",
128129
"line_number": 7,
129130
"name": u"some other passing step",
131+
"skipped": False,
130132
"type": "given",
131133
},
132134
],
@@ -156,6 +158,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
156158
"keyword": "Given",
157159
"line_number": 11,
158160
"name": u"a passing step",
161+
"skipped": False,
159162
"type": "given",
160163
},
161164
{
@@ -164,6 +167,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
164167
"keyword": "And",
165168
"line_number": 12,
166169
"name": u"a failing step",
170+
"skipped": False,
167171
"type": "given",
168172
},
169173
],
@@ -192,6 +196,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
192196
"keyword": "Given",
193197
"line_number": 15,
194198
"name": u"there are <start> cucumbers",
199+
"skipped": False,
195200
"type": "given",
196201
},
197202
{
@@ -200,6 +205,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
200205
"keyword": "When",
201206
"line_number": 16,
202207
"name": u"I eat <eat> cucumbers",
208+
"skipped": False,
203209
"type": "when",
204210
},
205211
{
@@ -208,6 +214,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
208214
"keyword": "Then",
209215
"line_number": 17,
210216
"name": u"I should have <left> cucumbers",
217+
"skipped": False,
211218
"type": "then",
212219
},
213220
],
@@ -243,6 +250,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
243250
"keyword": "Given",
244251
"line_number": 15,
245252
"name": u"there are <start> cucumbers",
253+
"skipped": False,
246254
"type": "given",
247255
},
248256
{
@@ -251,6 +259,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
251259
"keyword": "When",
252260
"line_number": 16,
253261
"name": u"I eat <eat> cucumbers",
262+
"skipped": False,
254263
"type": "when",
255264
},
256265
{
@@ -259,6 +268,7 @@ def should_have_left_cucumbers(start_cucumbers, start, eat, left):
259268
"keyword": "Then",
260269
"line_number": 17,
261270
"name": u"I should have <left> cucumbers",
271+
"skipped": False,
262272
"type": "then",
263273
},
264274
],

0 commit comments

Comments
 (0)