Skip to content

Commit e0db4a9

Browse files
fix validation
1 parent c7958b0 commit e0db4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/tests/unit/isolated/test_studies_dispatcher_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pytest
1212
from aiohttp.test_utils import make_mocked_request
1313
from models_library.utils.pydantic_tools_extension import parse_obj_or_none
14-
from pydantic import ByteSize
14+
from pydantic import ByteSize, TypeAdapter
1515
from servicelib.aiohttp.requests_validation import parse_request_query_parameters_as
1616
from simcore_service_webserver.studies_dispatcher._models import (
1717
FileParams,
@@ -23,7 +23,7 @@
2323
)
2424
from yarl import URL
2525

26-
_SIZEBYTES = ByteSize("3MiB")
26+
_SIZEBYTES = TypeAdapter(ByteSize).validate_python("3MiB")
2727

2828
# SEE https://github.com/ITISFoundation/osparc-simcore/issues/3951#issuecomment-1489992645
2929
# AWS download links have query arg

0 commit comments

Comments
 (0)