@@ -160,12 +160,9 @@ def test_Registry_before_spec_with_tags(self):
160160 registry .add_before_spec (info ['func' ], info ['tags' ])
161161
162162 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .before_spec ([])])
163- self .assertEqual ([x ['func' ] for x in infos ], [
164- i .impl for i in registry .before_spec (['A' , 'b' ])])
165- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
166- i .impl for i in registry .before_spec (['A' , 'b' , 'c' ])])
167- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
168- i .impl for i in registry .before_spec (['A' ])])
163+ self .assertEqual ([x ['func' ] for x in infos ], [i .impl for i in registry .before_spec (['A' , 'b' ])])
164+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .before_spec (['A' , 'b' , 'c' ])])
165+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .before_spec (['A' ])])
169166 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .before_spec (['A' , 'c' ])])
170167
171168 def test_Registry_after_spec_with_tags (self ):
@@ -179,12 +176,9 @@ def test_Registry_after_spec_with_tags(self):
179176 registry .add_after_spec (info ['func' ], info ['tags' ])
180177
181178 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .after_spec ([])])
182- self .assertEqual ([x ['func' ] for x in infos ], [
183- i .impl for i in registry .after_spec (['A' , 'b' ])])
184- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
185- i .impl for i in registry .after_spec (['A' , 'b' , 'c' ])])
186- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
187- i .impl for i in registry .after_spec (['A' ])])
179+ self .assertEqual ([x ['func' ] for x in infos ], [i .impl for i in registry .after_spec (['A' , 'b' ])])
180+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .after_spec (['A' , 'b' , 'c' ])])
181+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .after_spec (['A' ])])
188182 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .after_spec (['A' , 'c' ])])
189183
190184 def test_Registry_before_scenario (self ):
@@ -275,12 +269,9 @@ def test_Registry_before_step_with_tags(self):
275269 registry .add_before_step (info ['func' ], info ['tags' ])
276270
277271 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .before_step ([])])
278- self .assertEqual ([x ['func' ] for x in infos ], [
279- i .impl for i in registry .before_step (['A' , 'b' ])])
280- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
281- i .impl for i in registry .before_step (['A' , 'b' , 'c' ])])
282- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
283- i .impl for i in registry .before_step (['A' ])])
272+ self .assertEqual ([x ['func' ] for x in infos ], [i .impl for i in registry .before_step (['A' , 'b' ])])
273+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .before_step (['A' , 'b' , 'c' ])])
274+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .before_step (['A' ])])
284275 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .before_step (['A' , 'c' ])])
285276
286277 def test_Registry_after_step_with_tags (self ):
@@ -295,12 +286,9 @@ def test_Registry_after_step_with_tags(self):
295286 registry .add_after_step (info ['func' ], info ['tags' ])
296287
297288 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .after_step ([])])
298- self .assertEqual ([x ['func' ] for x in infos ], [
299- i .impl for i in registry .after_step (['A' , 'b' ])])
300- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
301- i .impl for i in registry .after_step (['A' , 'b' , 'c' ])])
302- self .assertEqual ([info1 ['func' ], info3 ['func' ]], [
303- i .impl for i in registry .after_step (['A' ])])
289+ self .assertEqual ([x ['func' ] for x in infos ], [i .impl for i in registry .after_step (['A' , 'b' ])])
290+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .after_step (['A' , 'b' , 'c' ])])
291+ self .assertEqual ([info1 ['func' ], info3 ['func' ]], [i .impl for i in registry .after_step (['A' ])])
304292 self .assertEqual ([info1 ['func' ]], [i .impl for i in registry .after_step (['A' , 'c' ])])
305293
306294 def test_Registry__step_positions_of_a_given_file (self ):
0 commit comments