Bugfix: EnvironBuilder doesn't take json
This commit is contained in:
parent
5c4fa7e91c
commit
136a833a8d
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def make_test_environ_builder(app, path='/', base_url=None, *args, **kwargs):
|
|||
if 'json' in kwargs:
|
||||
if 'data' in kwargs:
|
||||
raise ValueError('Client cannot provide both `json` and `data`')
|
||||
kwargs['data'] = json_dumps(kwargs['json'])
|
||||
kwargs['data'] = json_dumps(kwargs.pop('json'))
|
||||
|
||||
# Only set Content-Type when not explicitly provided
|
||||
if 'content_type' not in kwargs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue