~aluria/charm-grafana:add-pytests

Last commit made on 2019-06-27
Get this branch:
git clone -b add-pytests https://git.launchpad.net/~aluria/charm-grafana
Only Alvaro Uria can upload to this branch. If you are Alvaro Uria please log in for upload directions.

Branch merges

Branch information

Name:
add-pytests
Repository:
lp:~aluria/charm-grafana

Recent commits

445abcf... by Alvaro Uria

Minor fixes on codestyle per review

63176ba... by Alvaro Uria

Format lines to <90chars

dc6d8ac... by Alvaro Uria

Update from latest template-python-pytest

635ea40... by Alvaro Uria

Add .gitignore

1b71d28... by Alvaro Uria

Fix functionaltests

c9ed1b4... by Alvaro Uria

Rewrite unit tests using pytest

d0c3023... by Alvaro Uria

Merge latest template-python-pytests changes

 * Max lines increased to 120, and code adapted to the new length
 * Fixed max complexity excess on reactive/grafana.py:check_adminuser
 Part of the code has been moved to lib/lib_grafana.py
 Unit tests have been added to the new methods in lib_grafana.py

9500a19... by Alvaro Uria

Clear lint warnings

556c9b4... by Alvaro Uria

Fix syntax: Makefile, tox.ini

d6ca8ac... by Paul Goins

Added tests for the data_path() helper method

The data_path() method was refactored out into the lib_grafana module,
along with required constants. This removed dependencies on modules
provided by "charm build" and allows for doing a "make unittest" within
the src directory and having it "just work".

A few other small tweaks were added:

* I tweaked the tox.ini for unit testing so that it will ignore files
  in the builds directory, in case "charm build" is run.

* I disabled a test in the test_actions.py module as we haven't
  implemented any real tests there yet.