Merge pull request #378 from ucpr/add_formats_test

add test for #367
This commit is contained in:
Taoufik
2019-07-29 23:00:50 +02:00
committed by GitHub
+5
View File
@@ -305,6 +305,11 @@ def test_form_uploads(api):
r = api.requests.post(api.url_for(route), data=dump)
assert r.json() == dump
# requests with boundary
files = {"complicated": (None, "times")}
r = api.requests.post(api.url_for(route), files=files)
assert r.json() == {"complicated": "times"}
def test_json_downloads(api):
dump = {"testing": "123"}