Add unit tests to N2VC refactor 52/9352/8
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Tue, 7 Jul 2020 11:11:19 +0000 (13:11 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Thu, 20 Aug 2020 09:47:32 +0000 (11:47 +0200)
commit7ff392f6b60850ac7408f96fd42ab16b005ec2bf
tree9fd2dc9d16915371e3472311a9a01a8563baec6d
parent891732a9f4f1381a49e506cb9d39132b328aaa1c
Add unit tests to N2VC refactor

This commit adds unit tests for the following
modules:
juju_watcher.py 96% coverage
libjuju.py 72% coverage
utils.py 100% coverage

Minor libjuju.py fixes found with unit testing
Fix testing with tox

Change-Id: I9f23ce2f18aac6765edfa955ed200802c27d9047
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
n2vc/exceptions.py
n2vc/libjuju.py
n2vc/tests/unit/README.md [new file with mode: 0644]
n2vc/tests/unit/test_juju_watcher.py [new file with mode: 0644]
n2vc/tests/unit/test_libjuju.py [new file with mode: 0644]
n2vc/tests/unit/test_utils.py [new file with mode: 0644]
n2vc/tests/unit/utils.py [new file with mode: 0644]
tox.ini