summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2016-10-04 09:56:10 -0500
committerScott Moser <smoser@brickies.net>2016-10-04 16:35:56 -0400
commit760a4f1852ee7241c00804ebf210b6a4b1e9063d (patch)
tree51bd767f52434487f628a1f43a847f98c57a1fa9 /tox.ini
parent1071b9940b4e114cd2eabf290b739f92fbab33de (diff)
downloadvyos-cloud-init-760a4f1852ee7241c00804ebf210b6a4b1e9063d.tar.gz
vyos-cloud-init-760a4f1852ee7241c00804ebf210b6a4b1e9063d.zip
unittests: fix use of mock 2.0 'assert_called' when running make check
Some of the new DigitalOcean unittests were written to use 'assert_called', which is only available in mock versions 2.0. Because of this, the failure would only occur in releases less than yakkety and not in 'tox'. Add a 'xenial' entry to tox.ini with versions from xenial.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini27
1 files changed, 26 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 9424ae51..729de2a6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py3,flake8
+envlist = py27, py3, flake8, xenial
recreate = True
[testenv]
@@ -34,3 +34,28 @@ basepython = python3
deps = {[testenv]deps}
sphinx
commands = {envpython} -m sphinx {posargs:doc/rtd doc/rtd_html}
+
+[testenv:xenial]
+basepython = python3
+deps =
+ # requirements
+ jinja2==2.8
+ pyyaml==3.11
+ PrettyTable==0.7.2
+ oauthlib==1.0.3
+ pyserial==3.0.1
+ configobj==5.0.6
+ requests==2.9.1
+ # jsonpatch ubuntu is 1.10, not 1.19 (#839779)
+ jsonpatch==1.10
+ six==1.10.0
+ # test-requirements
+ httpretty==0.8.6
+ mock==1.3.0
+ nose==1.3.7
+ unittest2==1.1.0
+ contextlib2==0.5.1
+ pep8==1.7.0
+ pyflakes==1.1.0
+ flake8==2.5.4
+ hacking==0.10.2