mirror of
https://opendev.org/openstack/python-heatclient.git
synced 2026-01-16 23:00:35 +00:00
The expected_url in test_stack_list_with_args() does not always match the URL actually used in the code. This patch fixes this issue by: - using urlutils.urlencode() in both the code and the tests, so that changes in the urlencode() implementation do not affect the tests; - setting the PYTHONHASHSEED environment variable to 0 when running the tests, so that randomisation is disabled and urlutils.urlencode() has predictable results. Change-Id: I5b50bad98f5c237cdc12e4ab75f21917ca0ef30d
35 lines
839 B
INI
35 lines
839 B
INI
[tox]
|
|
envlist = py26,py27,pypy,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
# Set PYTHONHASHSEED to 0 so that randomisation is disabled and
|
|
# urlutils.urlencode() has predictable results.
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# H302: Do not import objects, only modules
|
|
ignore = H302
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|