Ejemplo n.º 1
0
 def spec(world):
     example_suite = ExampleSuite()
     ExampleSuite.set_suite(example_suite)
     with describe('Example Group with examples added by it()') as eg:
         decorator = it('Example description created by it()')
         example = decorator(first_test_function)
         assert eg.examples == [example]
Ejemplo n.º 2
0
 def s(w):
     ExampleSuite.set_suite(w.suite)
     assert ExampleSuite.get_suite() is w.suite
Ejemplo n.º 3
0
 def collect_to(self, example_suite):
     ExampleSuite.set_suite(example_suite)
     self.import_spec_files()