def test_from_yaml(mock_open): template_dict = {"Foo": "bar"} template = Template.from_yaml("fake.yml") assert template.raw == "Foo: bar\n", "Should load a string version of our template" assert ( template.template == template_dict ), "Should convert string dict to dict object"
def template(): template_path = Path(__file__).parent / "../../templates/log_bucket/log_bucket.yaml" return Template.from_yaml(template_path.resolve(), {})