コード例 #1
0
 def test_resources(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()
     resources = stacker.resources()
     self.assertEqual(2, len(resources))
コード例 #2
0
 def test_resources(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()
     resources = stacker.resources()
     self.assertEqual(2, len(resources))