Skip to content

Commit

Permalink
fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Nov 1, 2024
1 parent 01769ac commit 5c44e4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import NamedTuple

import psutil
from models_library.error_codes import create_error_code
from common_library.error_codes import create_error_code
from servicelib.logging_errors import create_troubleshotting_log_kwargs

from ..modules.mounted_fs import MountedVolumes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import timedelta
from functools import partial

from common_library.errors_classes import OsparcErrorMixin
from fastapi import FastAPI
from models_library.basic_types import IDStr
from models_library.rabbitmq_messages import ProgressType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def _assert_call_count(mock: AsyncMock, *, call_count: int) -> None:

def _get_mocked_disk_usage(byte_size_str: str) -> DiskUsage:
return DiskUsage(
total=ByteSize.validate(byte_size_str),
total=TypeAdapter(ByteSize).validate_python(byte_size_str),
used=ByteSize(0),
free=TypeAdapter(ByteSize).validate_python(byte_size_str),
used_percent=0,
Expand Down

0 comments on commit 5c44e4b

Please sign in to comment.