Merge "Python3: fix test_stack_list_with_args()"
This commit is contained in:
commit
7e265ec757
|
@ -392,9 +392,11 @@ class ShellTestUserPass(ShellBase):
|
||||||
|
|
||||||
def test_stack_list_with_args(self):
|
def test_stack_list_with_args(self):
|
||||||
self._script_keystone_client()
|
self._script_keystone_client()
|
||||||
expected_url = ('/stacks?'
|
expected_url = '/stacks?%s' % urlutils.urlencode({
|
||||||
'status=COMPLETE&status=FAILED'
|
'limit': 2,
|
||||||
'&marker=fake_id&limit=2')
|
'status': ['COMPLETE', 'FAILED'],
|
||||||
|
'marker': 'fake_id',
|
||||||
|
}, True)
|
||||||
fakes.script_heat_list(expected_url)
|
fakes.script_heat_list(expected_url)
|
||||||
|
|
||||||
self.m.ReplayAll()
|
self.m.ReplayAll()
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -4,7 +4,10 @@ minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
# Set PYTHONHASHSEED to 0 so that randomisation is disabled and
|
||||||
|
# urlutils.urlencode() has predictable results.
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
PYTHONHASHSEED=0
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} {packages}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
|
Loading…
Reference in New Issue