Merge "Add a way to run py34 tests from file"
This commit is contained in:
commit
e00cc75774
@ -64,5 +64,5 @@ class SyncPointTestCase(common.HeatTestCase):
|
|||||||
self.assertTrue(mock_callback.called)
|
self.assertTrue(mock_callback.called)
|
||||||
|
|
||||||
def test_serialize_input_data(self):
|
def test_serialize_input_data(self):
|
||||||
res = sync_point.serialize_input_data({(3L, 8): None})
|
res = sync_point.serialize_input_data({(3, 8): None})
|
||||||
self.assertEqual({'input_data': [[[3L, 8], None]]}, res)
|
self.assertEqual({'input_data': [[[3, 8], None]]}, res)
|
||||||
|
@ -1 +1 @@
|
|||||||
|
heat.tests.test_version
|
||||||
|
4
tools/run-py3-tests.sh
Executable file
4
tools/run-py3-tests.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
testr init
|
||||||
|
testr run --parallel `cat py3-testlist`
|
4
tox.ini
4
tox.ini
@ -61,12 +61,10 @@ commands =
|
|||||||
# FIXME(sirushtim): Sneak in flake8 here for now. This env will also be used
|
# FIXME(sirushtim): Sneak in flake8 here for now. This env will also be used
|
||||||
# to run the tests in the near future.
|
# to run the tests in the near future.
|
||||||
[testenv:py34]
|
[testenv:py34]
|
||||||
deps = -r{toxinidir}/requirements-py3.txt
|
|
||||||
-r{toxinidir}/test-requirements-py3.txt
|
|
||||||
commands =
|
commands =
|
||||||
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib heat_integrationtests
|
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib heat_integrationtests
|
||||||
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.pyc' -delete
|
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.pyc' -delete
|
||||||
python setup.py testr --slowest --testr-args='--load-list py3-testlist'
|
bash tools/run-py3-tests.sh
|
||||||
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
Reference in New Issue
Block a user