summaryrefslogtreecommitdiffstats
path: root/test/rules/test_inline_env_var.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/rules/test_inline_env_var.py')
-rw-r--r--test/rules/test_inline_env_var.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rules/test_inline_env_var.py b/test/rules/test_inline_env_var.py
index 98f337e..aa833ec 100644
--- a/test/rules/test_inline_env_var.py
+++ b/test/rules/test_inline_env_var.py
@@ -1,4 +1,5 @@
"""Tests for inline-env-var rule."""
+
from ansiblelint.rules import RulesCollection
from ansiblelint.rules.inline_env_var import EnvVarsInCommandRule
from ansiblelint.testing import RunFromText
@@ -13,7 +14,7 @@ SUCCESS_PLAY_TASKS = """
HELLO: hello
- name: Use some key-value pairs
- command: chdir=/tmp creates=/tmp/bobbins warn=no touch bobbins
+ command: chdir=/tmp creates=/tmp/bobbins touch bobbins
- name: Commands can have flags
command: abc --xyz=def blah
@@ -68,7 +69,7 @@ FAIL_PLAY_TASKS = """
command: HELLO=hello echo $HELLO
- name: Typo some stuff
- command: cerates=/tmp/blah warn=no touch /tmp/blah
+ command: crates=/tmp/blah touch /tmp/blah
"""