1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
12 serial
: mark a test that must run by itself
17 # for testing with other python versions
18 commands = py.test --tb native -ra -v -s -n auto -k 'not integration' -m 'not serial' {posargs}
30 # use fork to pick up fix for https://github.com/aaugustin/websockets/pull/528
31 git
+https
://github.com
/johnsca
/websockets@bug
/client
-redirects#egg
=websockets
34 # default tox env excludes integration and serial tests
36 # These need to be installed in a specific order
37 pip install urllib3==1.22
39 py.test
--tb native
-ra
-v
-s
-n auto
-k 'not integration'
-m 'not serial'
{posargs
}
42 envdir = {toxworkdir}/py3
44 flake8
--ignore E501
,W504
{posargs
} juju tests
49 envdir = {toxworkdir}/py3
51 # These need to be installed in a specific order
52 pip install urllib3==1.22
54 py.test
--tb native
-ra
-v
-s
-n auto
-k 'integration'
-m 'not serial'
{posargs
}
57 # tests that can't be run in parallel
58 envdir = {toxworkdir}/py3
59 commands = py.test --tb native -ra -v -s {posargs:-m 'serial'}
62 envdir = {toxworkdir}/py3
63 commands = python {posargs}
66 exclude = juju/client/_*