Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed May 3, 2021
1 parent 288bf3e commit 9ac333a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/TestSkipInsideYaml.py
Expand Up @@ -2,12 +2,10 @@

ROLE_TASKS = '''\
---
- name: test command-instead-of-module
command: git log
changed_when: false
- name: test command-instead-of-module (skipped)
command: git log # noqa command-instead-of-module
changed_when: false
- debug:
msg: this should fail linting due lack of name
- debug: # noqa unnamed-task
msg: this should pass due to noqa comment
'''

ROLE_TASKS_WITH_BLOCK = '''\
Expand Down Expand Up @@ -91,7 +89,9 @@

def test_role_tasks(default_text_runner):
results = default_text_runner.run_role_tasks_main(ROLE_TASKS)
assert len(results) == 1
assert len(results) == 1, results
assert results[0].linenumber == 2
assert results[0].rule.id == "unnamed-task"


def test_role_tasks_with_block(default_text_runner):
Expand Down

0 comments on commit 9ac333a

Please sign in to comment.