Try to unit test but give up for now
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
9
test/conftest.py
Normal file
9
test/conftest.py
Normal file
@ -0,0 +1,9 @@
|
||||
import json
|
||||
|
||||
from ansible.module_utils import basic
|
||||
from ansible.module_utils._text import to_bytes
|
||||
|
||||
|
||||
def set_module_args(args):
|
||||
args = json.dumps({'ANSIBLE_MODULE_ARGS': args})
|
||||
basic._ANSIBLE_ARGS = to_bytes(args)
|
||||
@ -1,2 +1,9 @@
|
||||
def test_gandi_dns():
|
||||
assert 666 == 666
|
||||
import pytest
|
||||
|
||||
gandi_cli = pytest.importorskip('gandi.cli')
|
||||
|
||||
|
||||
def test_TODO():
|
||||
# TODO(decentral1se): discover how to unit test the module so far it is a
|
||||
# bit of a weird python packaging circus and there are lots of errors...
|
||||
assert 1 == 1
|
||||
|
||||
Reference in New Issue
Block a user