mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 22:39:09 -07:00
WIP on refactoring changes
This commit is contained in:
parent
b9223e5995
commit
6db1b4dfd2
5 changed files with 7 additions and 42 deletions
|
@ -1,37 +0,0 @@
|
|||
# TODO: header
|
||||
|
||||
from ansible.playbook.task import Task
|
||||
import unittest
|
||||
|
||||
basic_shell_task = dict(
|
||||
name = 'Test Task',
|
||||
shell = 'echo hi'
|
||||
)
|
||||
|
||||
class TestTask(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_can_construct_empty_task():
|
||||
t = Task()
|
||||
|
||||
def test_can_construct_task_with_role():
|
||||
pass
|
||||
|
||||
def test_can_construct_task_with_block():
|
||||
pass
|
||||
|
||||
def test_can_construct_task_with_role_and_block():
|
||||
pass
|
||||
|
||||
def test_can_load_simple_task():
|
||||
t = Task.load(basic_shell_task)
|
||||
assert t.name == basic_shell_task['name']
|
||||
assert t.module == 'shell'
|
||||
assert t.args == 'echo hi'
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue