Unit tests improvements 74/11074/2
authorDavid Garcia <david.garcia@canonical.com>
Mon, 26 Jul 2021 14:04:59 +0000 (16:04 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 27 Jul 2021 09:09:58 +0000 (11:09 +0200)
commit4ae527ee394a9794c25e7a90fe895aa446c6c797
tree6b7ef933262741b2d1701bd73b31a348c94dce83
parentd8d4b6e70c0e4410a4b5c274faecd37ee821f3b7
Unit tests improvements

- From now on, black must pass. Jenkins will give a -1 if it doesn't
- Ignore E203 because it is not pep8 compliant, and conflicts with black
    https://github.com/psf/black/issues/315#issuecomment-395457972
- Black fixes and minor fix in unit test
- Fix devops-stages/stage-test.sh: jenkins was not giving a -1 when tox
was failing

Change-Id: Ic7318dcb6d4006a271607cd064a1f36d0936b7b9
Signed-off-by: David Garcia <david.garcia@canonical.com>
devops-stages/stage-test.sh
n2vc/k8s_helm3_conn.py
n2vc/k8s_helm_base_conn.py
n2vc/kubectl.py
n2vc/loggable.py
n2vc/tests/unit/test_k8s_helm3_conn.py
n2vc/tests/unit/test_libjuju.py
tox.ini