Commit Graph

6 Commits

Author SHA1 Message Date
Alex Kavanagh ea0721a6fa Migrate unit tests from testr to stestr
Change-Id: I5c0c74fc2e212144d4d98c8b230d9ce39f45fc64
2021-02-10 11:14:39 +00:00
Ghanshyam Mann a56b09f79b [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I32d62e7721e8250c237cede6f284da3fe8367b33
2020-03-24 17:28:07 +00:00
Camille Rodriguez fb519b0e80 Avoid pollution and false positives with tox.ini
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I9092e15bdd9e1437767c7277d69249793db35484
2019-08-27 09:10:54 -04:00
Corey Bryant f499fe478d Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I9092bd74106d5e133e9af1839b140ea256999d1f
Story: #2005924
Task: #34228
2019-07-30 10:16:30 -04:00
Paul Goins 874c08afde Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: Ibf0a0a4ad3e369f15011bce8f69466a8ee3cde7a
2019-03-01 14:40:44 +01:00
Liam Young 7aff370e79 Add docstrings, unit tests etc 2018-07-26 12:45:29 +00:00