Skip to content

Commit

Permalink
resolve last test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Jul 11, 2024
1 parent 6d498e4 commit b7208ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/storage/business/test_url_resolver_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion tests/storage/business/test_variant_study_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b7208ce

Please sign in to comment.