Add a way to run py34 tests from file

Also, fix minor flake8 issue related to Long literal.

This should now have the python34 gate job passing.

partial blueprint heat-python34-support

Change-Id: I7f85e7251fc96587df0b43daac202c38542a6f6c
This commit is contained in:
Sirushti Murugesan 2015-06-29 09:06:06 +05:30
parent 2c99f0090c
commit 7a7820c4ff
4 changed files with 8 additions and 6 deletions

View File

@ -64,5 +64,5 @@ class SyncPointTestCase(common.HeatTestCase):
self.assertTrue(mock_callback.called)
def test_serialize_input_data(self):
res = sync_point.serialize_input_data({(3L, 8): None})
self.assertEqual({'input_data': [[[3L, 8], None]]}, res)
res = sync_point.serialize_input_data({(3, 8): None})
self.assertEqual({'input_data': [[[3, 8], None]]}, res)

View File

@ -1 +1 @@
heat.tests.test_version

4
tools/run-py3-tests.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
testr init
testr run --parallel `cat py3-testlist`

View File

@ -62,12 +62,10 @@ commands =
# FIXME(sirushtim): Sneak in flake8 here for now. This env will also be used
# to run the tests in the near future.
[testenv:py34]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements-py3.txt
commands =
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
python setup.py testr --slowest --testr-args='--load-list py3-testlist'
bash tools/run-py3-tests.sh
[flake8]