def test_start_shell_with_template() -> None: template_name = "test_start_shell_with_template" tpl.set_template(template_name, conf.fixtures_path("templates/template.yaml")) with cmd.interactive_command("shell", "start", "--template", template_name, "--detach"): pass
def test_start_command_with_template() -> None: template_name = "test_start_command_with_template" tpl.set_template(template_name, conf.fixtures_path("templates/template.yaml")) with cmd.interactive_command("command", "run", "--template", template_name, "--detach", "sleep infinity"): pass
def test_set_template() -> None: template_name = "test_set_template" template_path = conf.fixtures_path("templates/template.yaml") tpl.set_template(template_name, template_path) config = yaml.safe_load(tpl.describe_template(template_name)) assert config == conf.load_config(template_path)