Skip to content

Commit

Permalink
fix mock server
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao Qiao committed Aug 2, 2024
1 parent 3a552ea commit 1e0c61b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,14 @@ def download(ids=""):

data = ""
filename = "test_file.txt"
headers = request.headers

ids = ids.split(",")

headers = request.headers

if request.content_type == "application/json":
args = request.json
ids = args.get("ids")

if isinstance(ids, str):
ids = [ids]

for i in ids:
if i not in uuids.keys():
return (
Expand Down

0 comments on commit 1e0c61b

Please sign in to comment.