Skip to content

Commit

Permalink
fix binary file upload following new version of httpx
Browse files Browse the repository at this point in the history
  • Loading branch information
cbernet committed Nov 21, 2022
1 parent 50dafe2 commit aa93d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/web_server/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_mapping_ok(app_client):
test_mapping = abspath_data("labview/mapping.txt")
assert test_mapping.exists()

with open(test_mapping) as file:
with open(test_mapping, "rb") as file:
response = app_client.post(
"/mapping",
files={
Expand All @@ -147,7 +147,7 @@ def test_realistic(app_client):
test_header = abspath_data("labview/header.txt")
test_data = abspath_data("labview/measure_line.txt")

with open(test_mapping) as file:
with open(test_mapping, "rb") as file:
response = app_client.post(
"/mapping",
files={
Expand Down

0 comments on commit aa93d0c

Please sign in to comment.