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]
def s(w): ExampleSuite.set_suite(w.suite) assert ExampleSuite.get_suite() is w.suite
def collect_to(self, example_suite): ExampleSuite.set_suite(example_suite) self.import_spec_files()