Enable lint, flake8 and unit tests 72/8872/1
authorbeierlm <mark.beierl@canonical.com>
Tue, 21 Apr 2020 20:36:35 +0000 (16:36 -0400)
committerDavid Garcia <david.garcia@canonical.com>
Thu, 7 May 2020 09:03:32 +0000 (11:03 +0200)
commit32862bb30e8b98ef7f21ed64a1327bd7462e7767
tree889ee6b370ccb8c912040e29104047815422f82d
parentb4e41a0de84eea615a8a80cc191a34032b679b55
Enable lint, flake8 and unit tests

Cleans up non pep compliant code.
Adds a simple unit test.
Formats according to black.

Tox automatically runs lint, flake8 and unit test suite
with coverage.  To run each individually, execute:

tox -e pylint
tox -e black
tox -e flake8
tox -e cover

Note that these are all run for each patch via Jenkins.  The full
tox suite should be run locally before any commit to ensure it
will not fail in Jenkins.

Change-Id: I2f87abe3d5086d6d65ac33a27780c498fc7b1cd3
Signed-off-by: beierlm <mark.beierl@canonical.com>
19 files changed:
.gitignore
devops-stages/stage-test.sh
n2vc/__init__.py
n2vc/exceptions.py
n2vc/juju_observer.py
n2vc/k8s_conn.py
n2vc/k8s_helm_conn.py
n2vc/k8s_juju_conn.py
n2vc/loggable.py
n2vc/n2vc_conn.py
n2vc/n2vc_juju_conn.py
n2vc/provisioner.py
n2vc/tests/__init__.py [new file with mode: 0644]
n2vc/tests/unit/__init__.py [new file with mode: 0644]
n2vc/tests/unit/test_provisioner.py [new file with mode: 0644]
n2vc/vnf.py
requirements.txt
test-requirements.txt [new file with mode: 0644]
tox.ini