[go: nahoru, domu]

Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Jenoudet <arthur.jenoudet@databricks.com>
  • Loading branch information
artjen committed Jun 27, 2024
1 parent e332c67 commit 32f1594
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def test_create_model_version_with_langchain_dependencies(store, langchain_local
secret_access_key=secret_access_key,
session_token=session_token,
credential_refresh_def=ANY,
s3_upload_extra_args={},
)
mock_artifact_repo.log_artifacts.assert_called_once_with(local_dir=ANY, artifact_path="")
_assert_create_model_version_endpoints_called(
Expand Down Expand Up @@ -377,6 +378,7 @@ def test_create_model_version_with_resources(store, langchain_local_model_dir_wi
secret_access_key=secret_access_key,
session_token=session_token,
credential_refresh_def=ANY,
s3_upload_extra_args={},
)
mock_artifact_repo.log_artifacts.assert_called_once_with(local_dir=ANY, artifact_path="")
_assert_create_model_version_endpoints_called(
Expand Down Expand Up @@ -434,6 +436,7 @@ def test_create_model_version_with_langchain_no_dependencies(
secret_access_key=secret_access_key,
session_token=session_token,
credential_refresh_def=ANY,
s3_upload_extra_args={},
)
mock_artifact_repo.log_artifacts.assert_called_once_with(local_dir=ANY, artifact_path="")
_assert_create_model_version_endpoints_called(
Expand Down Expand Up @@ -1019,6 +1022,7 @@ def test_create_model_version_aws(store, local_model_dir):
secret_access_key=secret_access_key,
session_token=session_token,
credential_refresh_def=ANY,
s3_upload_extra_args={},
)
mock_artifact_repo.log_artifacts.assert_called_once_with(local_dir=ANY, artifact_path="")
_assert_create_model_version_endpoints_called(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def test_uc_models_artifact_repo_download_artifacts_uses_temporary_creds_aws(mon
secret_access_key=fake_secret_access_key,
session_token=fake_session_token,
credential_refresh_def=ANY,
s3_upload_extra_args={},
)
mock_s3_repo.download_artifacts.assert_called_once_with("artifact_path", "dst_path")
request_mock.assert_called_with(
Expand Down

0 comments on commit 32f1594

Please sign in to comment.