Skip to content

add json argument for test client#1404

Merged
davidism merged 1 commit into
masterfrom
test-client-json
Nov 25, 2018
Merged

add json argument for test client#1404
davidism merged 1 commit into
masterfrom
test-client-json

Conversation

@davidism

@davidism davidism commented Nov 25, 2018

Copy link
Copy Markdown
Member

Closes #848

Raises a TypeError if data is also passed. Sets content_type="application/json" if it doesn't already have a value. To support alternate serializers, such as flask.json.dumps, EnvironBuilder.json_dumps can be overridden.

@davidism davidism added this to the 0.15 milestone Nov 25, 2018
@davidism davidism merged commit c1990f3 into master Nov 25, 2018
@davidism davidism deleted the test-client-json branch November 25, 2018 23:49
davidism added a commit that referenced this pull request Dec 1, 2018
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add json argument to test.Client.post()

1 participant