summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2015-06-12 10:28:49 +0200
committerVictor Stinner <vstinner@redhat.com>2015-06-12 18:11:42 +0200
commit5977295dafc914406c765398e234dfcfd48d7766 (patch)
tree2da1113fd7adb119c753805b6effe3106d7aec95 /tox.ini
parent639a24dc95e57149f21480b4a057d757e837fdbf (diff)
downloadceilometer-5977295dafc914406c765398e234dfcfd48d7766.tar.gz
Port middleware to Python 3
* Fix integer division: status_code/100 => status_code//100 * HTTP body type is bytes. Decode the HTTP body from UTF-8 to use it. Encode XML and JSON to UTF-8 to produce the HTTP body (for error messages). * Factorize XML/JSON code a little bit more (ex: add the new content_type variable) * Fix test_app on Python 3: decode HTTP from UTF-8 to load JSON * tox.ini: add api.v2.test_app to Python 3.4 Change-Id: I4f916cba36306f776b01df915c55e314ade6b6ba
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 8e30449a..6305cbc0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -47,6 +47,7 @@ commands =
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements-py3.txt
commands = python -m testtools.run \
+ ceilometer.tests.api.v2.test_app \
ceilometer.tests.api.v2.test_query \
ceilometer.tests.compute.virt.libvirt.test_inspector \
ceilometer.tests.compute.virt.vmware.test_vsphere_operations \