[go: nahoru, domu]

Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Jul 4, 2024
1 parent acb31d1 commit 95cfd72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/store/artifact/test_databricks_artifact_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,19 +713,19 @@ def test_list_artifacts_handles_pagination(databricks_artifact_repo):
) as message_mock, mock.patch(
f"{DATABRICKS_ARTIFACT_REPOSITORY}._call_endpoint",
side_effect=list_artifact_paginated_response_protos,
):

):
artifacts = databricks_artifact_repo.list_artifacts()
assert {file.path for file in artifacts} == {"a.txt", "b", "c.txt", "d", "e.txt", "f"}
calls = [
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="2")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="4")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="6")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="2")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="4")),
mock.call(ListArtifacts(run_id=MOCK_RUN_ID, path="", page_token="6")),
]

assert message_mock.mock_calls == calls


def test_get_read_credential_infos_handles_pagination(databricks_artifact_repo):
"""
Verifies that the `get_read_credential_infos` method, which is used to resolve read access
Expand Down

0 comments on commit 95cfd72

Please sign in to comment.