Use proper exception type and update changelog

This commit is contained in:
Adam Byrtek 2015-04-01 00:11:52 +01:00 committed by Markus Unterwaditzer
parent 6c5ef2bc5c
commit b099999c6c
3 changed files with 5 additions and 1 deletions

View file

@ -37,7 +37,7 @@ def make_test_environ_builder(app, path='/', base_url=None, json=None, *args, **
if json is not None:
if 'data' in kwargs:
raise RuntimeError('Client cannot provide both `json` and `data`')
raise ValueError('Client cannot provide both `json` and `data`')
kwargs['data'] = json_dumps(json)
# Only set Content-Type when not explicitly provided