deb-python-gabbi/gabbi
Chris Dent 4b82d0ddc7 Clean up content-type parsing
Some of the places in which not_binary was being called were
not guarded in a way that made sure that the content-type being
sent to not_binary was just a media-type (without charset etc).

A parse_content_type method was extracted from the
extract_content_type method so that both a headers dict or a simple
header value could be parsed.

This seemed more generic and contractual than making not_binary
extract if required.

Fixes #158
2016-07-03 14:11:12 -04:00
..
tests Clean up content-type parsing 2016-07-03 14:11:12 -04:00
__init__.py release 1.23.0 2016-06-16 14:22:49 +01:00
case.py Clean up content-type parsing 2016-07-03 14:11:12 -04:00
driver.py Add a pytest plugin to fix fixture handling (#152) 2016-06-16 13:42:21 +01:00
exception.py Send a warning when a yaml filename has an underscore (#157) 2016-06-16 13:41:56 +01:00
fixture.py Use the Interceptor class from wsgi_intercept 2015-12-29 12:29:18 +00:00
handlers.py Extract suitemaking out of driver 2016-06-03 15:07:57 +01:00
httpclient.py Make pylint a little happier 2016-05-07 14:00:37 +01:00
json_parser.py Make pylint a little happier 2016-05-07 14:00:37 +01:00
pytester.py Add a pytest plugin to fix fixture handling (#152) 2016-06-16 13:42:21 +01:00
reporter.py Make pylint a little happier 2016-05-07 14:00:37 +01:00
runner.py Enable a 'url' arg to build_tests (#153) 2016-06-13 20:10:24 +01:00
suite.py Extract suitemaking out of driver 2016-06-03 15:07:57 +01:00
suitemaker.py Tune up the docs so modules are presented better 2016-06-15 18:19:16 +01:00
utils.py Clean up content-type parsing 2016-07-03 14:11:12 -04:00