Skip to content

Commit 094f4bb

Browse files
committed
fix test
1 parent ca3c35b commit 094f4bb

File tree

1 file changed

+1
-4
lines changed
  • services/storage/src/simcore_service_storage/api/rest

1 file changed

+1
-4
lines changed

services/storage/src/simcore_service_storage/api/rest/_files.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import logging
3-
import urllib.parse
43
from typing import Annotated, cast
54

65
from fastapi import APIRouter, Depends, Header, HTTPException, Request
@@ -306,9 +305,7 @@ async def is_completed_upload_file(
306305
# if it returns slow we return a 202 - Accepted, the client will have to check later
307306
# for completeness
308307
task_name = create_upload_completion_task_name(query_params.user_id, file_id)
309-
assert task_name == urllib.parse.quote(
310-
future_id
311-
) # nosec # NOTE: fastapi auto-decode path parameters
308+
assert task_name == future_id # nosec # NOTE: fastapi auto-decode path parameters
312309
# first check if the task is in the app
313310
if task := get_completed_upload_tasks(request.app).get(task_name):
314311
if task.done():

0 commit comments

Comments
 (0)