Exemplo n.º 1
0
 def test_events(self):
     test_proj = (Path(__file__).parent / "./data/nested-fail").resolve()
     project_name, tests = get_tests(test_proj)
     stacker = Stacker(project_name=project_name, tests=tests)
     stacker.create_stacks()
     events = stacker.events()
     self.assertEqual(2, len(events))
Exemplo n.º 2
0
 def test_events(self):
     test_proj = (Path(__file__).parent / "./data/nested-fail").resolve()
     c = Config(
         project_config_path=test_proj / "ci" / "taskcat.yml",
         project_root=test_proj,
         create_clients=False,
     )
     stacker = Stacker(c)
     stacker.create_stacks()
     events = stacker.events()
     self.assertEqual(2, len(events))