Skip to content

Commit

Permalink
Merge pull request #378 from ucpr/add_formats_test
Browse files Browse the repository at this point in the history
add test for #367
  • Loading branch information
taoufik07 committed Jul 29, 2019
2 parents 22af42e + bd2efb6 commit 0529629
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_responder.py
Expand Up @@ -305,6 +305,11 @@ async def route(req, resp):
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"}
Expand Down

0 comments on commit 0529629

Please sign in to comment.