Skip to content

Commit

Permalink
test: add test for #367
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpr committed Jul 29, 2019
1 parent ed8afea commit bd2efb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_responder.py
Original file line number Diff line number Diff line change
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 bd2efb6

Please sign in to comment.