Try to unit test but give up for now
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Luke Murphy
2020-03-28 17:55:36 +01:00
parent 9256beabdb
commit a0374d8209
5 changed files with 90 additions and 6 deletions

9
test/conftest.py Normal file
View 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)

View File

@ -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