Add unit tests to N2VC refactor 17/9417/1
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Tue, 7 Jul 2020 11:11:19 +0000 (13:11 +0200)
committergarciadav <david.garcia@canonical.com>
Wed, 15 Jul 2020 10:21:23 +0000 (12:21 +0200)
commitb78b3e0963c1fbe31daaf71dabac5362588bb88b
tree9fd2dc9d16915371e3472311a9a01a8563baec6d
parent4d9facc140ab76da587871590c550f5862103dd6
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