Add STRICT_RESPONSE_HEADERS check to gabbi tests

This uses a new feature in wsgi_intercept 1.4.1 that checks to make
sure that response headers are native str type (different things in
Python 2 and 3). Since Pecan is well behaved this "just works".
Tested locally with both py27 and py35.

Change-Id: I1406cfbfa14f69132fc91549779424b8427e7b78
This commit is contained in:
Chris Dent 2016-09-28 17:24:43 +01:00
parent e26bf9078f
commit 15c0c71036
2 changed files with 3 additions and 0 deletions

View File

@ -18,10 +18,12 @@
import os
from gabbi import driver
import wsgi_intercept
from gnocchi.tests.gabbi import fixtures
wsgi_intercept.STRICT_RESPONSE_HEADERS = True
TESTS_DIR = 'gabbits'

View File

@ -75,6 +75,7 @@ test =
doc8
tooz>=1.38
keystonemiddleware>=4.0.0
wsgi_intercept>=1.4.1
[global]
setup-hooks =