Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: helenxie-bit <[email protected]>
  • Loading branch information
helenxie-bit committed Sep 11, 2024
1 parent 4909456 commit 1e78840
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def test_tune(katib_client, test_name, kwargs, expected_output):

with patch.dict(
"sys.modules",
{
{
"kubeflow.storage_initializer": Mock(),
"kubeflow.storage_initializer.hugging_face": Mock(),
"kubeflow.storage_initializer.s3": Mock(),
Expand All @@ -593,8 +593,8 @@ def test_tune(katib_client, test_name, kwargs, expected_output):
"kubeflow.training.utils": Mock(),
"kubeflow.training.constants": Mock(),
"kubeflow.training.constants.constants": Mock(),
}), \
patch(
},
), patch(
"kubeflow.storage_initializer.hugging_face.HuggingFaceModelParams",
HuggingFaceModelParams,
), patch(
Expand All @@ -614,8 +614,7 @@ def test_tune(katib_client, test_name, kwargs, expected_output):
), patch(
"kubeflow.katib.utils.utils.get_trial_substitutions_from_trainer",
return_value={"param": "value"},
), \
patch.object(
), patch.object(
katib_client, "create_experiment", return_value=Mock()
) as mock_create_experiment:
try:
Expand Down

0 comments on commit 1e78840

Please sign in to comment.