Skip to content

Commit

Permalink
test(sdk): add patch for load_kube_config.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Aug 6, 2024
1 parent e7be3cb commit f889b9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/kubeflow/training/api/training_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ def training_client():

@pytest.fixture
def training_client_wait_for_job_conditions():
with patch.object(TrainingClient, "get_job", side_effect=get_job_response):
with patch.object(TrainingClient, "get_job", side_effect=get_job_response), patch(
"kubernetes.config.load_kube_config", return_value=Mock()
):
client = TrainingClient(job_kind=constants.PYTORCHJOB_KIND)
yield client

Expand Down

0 comments on commit f889b9f

Please sign in to comment.