From 7911b716e8d19cad0dc310472934381a0c9cd9e4 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Mon, 14 Oct 2019 13:56:15 +0100 Subject: [PATCH] fix(saltcheck): fix broken import and standardise across test files --- cron/saltcheck-tests/config.tst | 5 ++++- cron/saltcheck-tests/install.tst | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cron/saltcheck-tests/config.tst b/cron/saltcheck-tests/config.tst index 2b3b4e7..ad89650 100644 --- a/cron/saltcheck-tests/config.tst +++ b/cron/saltcheck-tests/config.tst @@ -1,4 +1,7 @@ -{%- from "cron/map.jinja" import cron_settings with context %} +# -*- coding: utf-8 -*- +# vim: ft=sls + +{%- from "cron/map.jinja" import cron_settings with context %} {%- if 'tasks' in cron_settings %} {%- for task,task_options in cron_settings.tasks.items() %} diff --git a/cron/saltcheck-tests/install.tst b/cron/saltcheck-tests/install.tst index 290de07..09c953b 100644 --- a/cron/saltcheck-tests/install.tst +++ b/cron/saltcheck-tests/install.tst @@ -1,5 +1,7 @@ +# -*- coding: utf-8 -*- +# vim: ft=sls -m "cron/map.jinja" import cron_settings with context %} +{%- from "cron/map.jinja" import cron_settings with context %} verify_cron.install: module_and_function: pkg.version