File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
services/resource-usage-tracker/tests/unit/with_dbs Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 44# pylint:disable=too-many-arguments
55
66import os
7- from unittest .mock import Mock
7+ from unittest .mock import AsyncMock , Mock
88
99import pytest
1010import sqlalchemy as sa
2929
3030
3131@pytest .fixture
32- async def mocked_export (mocker : MockerFixture ):
33- mocker .patch (
32+ async def mocked_export (mocker : MockerFixture ) -> AsyncMock :
33+ return mocker .patch (
3434 "simcore_service_resource_usage_tracker.services.service_runs.ResourceTrackerRepository.export_service_runs_table_to_s3" ,
3535 autospec = True ,
3636 )
3737
3838
3939@pytest .fixture
40- async def mocked_presigned_link (mocker : MockerFixture ):
41- mocker .patch (
40+ async def mocked_presigned_link (mocker : MockerFixture ) -> AsyncMock :
41+ return mocker .patch (
4242 "simcore_service_resource_usage_tracker.services.service_runs.SimcoreS3API.create_single_presigned_download_link" ,
4343 return_value = TypeAdapter (AnyUrl ).validate_python ("https://www.testing.com/" ),
4444 )
You can’t perform that action at this time.
0 commit comments