Skip to content

Commit

Permalink
Fix multipart file read type
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Mar 14, 2024
1 parent 8122a23 commit 9c3ba93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def test_tsv_2_json_old_format():
# GIVEN a POST request to the endpoint with multipart-encoded files:
# (https://requests.readthedocs.io/en/latest/user/advanced/#post-multiple-multipart-encoded-files)
files = [
("files", (variants_old_csv, open(tab_sep_var_file.name, "r"))),
("files", (casedata_old_csv, open(tab_sep_cdata_file.name, "r"))),
("files", (variants_old_csv, open(tab_sep_var_file.name, "rb"))),
("files", (casedata_old_csv, open(tab_sep_cdata_file.name, "rb"))),
]

# THEN the response should be successful (code 200)
Expand Down

0 comments on commit 9c3ba93

Please sign in to comment.