Browse Source

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: I3db9bd4e4b3b09b321f250eaa1bf33f6c7e3a229
Story: #2005924
Task: #34228
changes/42/673042/2
Corey Bryant 2 months ago
parent
commit
f6d8ce78bb
2 changed files with 13 additions and 2 deletions
  1. 1
    0
      .zuul.yaml
  2. 12
    2
      tox.ini

+ 1
- 0
.zuul.yaml View File

@@ -1,4 +1,5 @@
1 1
 - project:
2 2
     templates:
3 3
       - python35-charm-jobs
4
+      - openstack-python3-train-jobs
4 5
       - openstack-cover-jobs

+ 12
- 2
tox.ini View File

@@ -3,7 +3,7 @@
3 3
 # within individual charm repos.
4 4
 [tox]
5 5
 skipsdist = True
6
-envlist = pep8,py35
6
+envlist = pep8,py37
7 7
 
8 8
 [testenv]
9 9
 setenv = VIRTUAL_ENV={envdir}
@@ -25,7 +25,17 @@ whitelist_externals = true
25 25
 commands = true
26 26
 
27 27
 [testenv:py35]
28
-basepython = python3
28
+basepython = python3.5
29
+deps = -r{toxinidir}/test-requirements.txt
30
+commands = ostestr {posargs}
31
+
32
+[testenv:py36]
33
+basepython = python3.6
34
+deps = -r{toxinidir}/test-requirements.txt
35
+commands = ostestr {posargs}
36
+
37
+[testenv:py37]
38
+basepython = python3.7
29 39
 deps = -r{toxinidir}/test-requirements.txt
30 40
 commands = ostestr {posargs}
31 41
 

Loading…
Cancel
Save