diff --git a/tests/storage/business/test_url_resolver_service.py b/tests/storage/business/test_url_resolver_service.py index 40dabc53c4..3979fd9f71 100644 --- a/tests/storage/business/test_url_resolver_service.py +++ b/tests/storage/business/test_url_resolver_service.py @@ -30,7 +30,7 @@ def test_resolve_matrix(): resolver = UriResolverService(matrix_service=matrix_service) - assert MOCK_MATRIX_JSON == resolver.resolve("matrix://my-id") + assert MOCK_MATRIX_JSON == resolver.resolve("matrix://my-id", format="json") matrix_service.get.assert_called_once_with("my-id") assert f"1.000000\t2.000000{os.linesep}3.000000\t4.000000{os.linesep}" == resolver.resolve("matrix://my-id", False) diff --git a/tests/storage/business/test_variant_study_service.py b/tests/storage/business/test_variant_study_service.py index 53182ce3ee..150e38ba45 100644 --- a/tests/storage/business/test_variant_study_service.py +++ b/tests/storage/business/test_variant_study_service.py @@ -97,7 +97,7 @@ def task_status(*args): study_service.task_service.await_task.assert_called() study_service.exists.return_value = True - output = study_service.get(metadata=metadata, url=sub_route, depth=2) + output = study_service.get(metadata=metadata, url=sub_route, depth=2, format="json") assert output == data diff --git a/tests/storage/repository/filesystem/matrix/test_input_series_matrix.py b/tests/storage/repository/filesystem/matrix/test_input_series_matrix.py index e06edd587b..4cd98dd83a 100644 --- a/tests/storage/repository/filesystem/matrix/test_input_series_matrix.py +++ b/tests/storage/repository/filesystem/matrix/test_input_series_matrix.py @@ -67,9 +67,9 @@ def test_load__link_to_matrix(self, my_study_config: FileStudyTreeConfig) -> Non } link.write_text(matrix_uri) - def resolve(uri: str, formatted: bool = True) -> t.Dict[str, t.Any]: + def resolve(uri: str, format: t.Optional[str] = None) -> t.Dict[str, t.Any]: assert uri == matrix_uri - assert formatted is True + assert format == "json" return matrix_obj context = ContextServer(