From a9d9d2ba53fd7499226ee7adebd16253e092caf9 Mon Sep 17 00:00:00 2001 From: Efstathios Charitos Date: Fri, 24 Jun 2022 06:05:58 +0100 Subject: [PATCH] tests --- test/kubernetes_helpers_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/kubernetes_helpers_test.py b/test/kubernetes_helpers_test.py index cf7cb55..b936926 100644 --- a/test/kubernetes_helpers_test.py +++ b/test/kubernetes_helpers_test.py @@ -143,15 +143,15 @@ def test_job_phase_stream(mocked_get_job_pods): pod.status = MagicMock() pod.status.phase = "Running" mocked_get_job_pods.return_value = [pod] - phase, pod_with_changed_state = next(job_phase_stream(job)) + phase, pods_with_changed_state, error_message = next(job_phase_stream(job)) assert phase == "Running" - assert pod.metadata.name == pod_with_changed_state.metadata.name + assert pod.metadata.name == pods_with_changed_state[0].metadata.name pod.status.phase = "Succeeded" mocked_get_job_pods.return_value = [pod] - phase, pod_with_changed_state = next(job_phase_stream(job)) + phase, pods_with_changed_state, error_message = next(job_phase_stream(job)) assert phase == "Succeeded" - assert pod.metadata.name == pod_with_changed_state.metadata.name + assert pod.metadata.name == pods_with_changed_state[0].metadata.name @patch("kubeluigi.k8s.get_job_pods")