Skip to content

Commit 08b82ea

Browse files
committed
fix(backend): Fix test regression
1 parent c1bf928 commit 08b82ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/tests/integration/test_jobs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def test_success(
124124
mocker.patch.object(
125125
KueueWorkload, "for_managed_resource", return_value=workload
126126
)
127+
mocker.patch.object(KubernetesService, "namespace", return_value="default")
127128
# FIXME: This prevents the pod listing API call, which doesn't work in a integration
128129
# test scenario.
129130
mocker.patch.object(KueueWorkload, "has_failed_pods", return_value=False)
@@ -147,7 +148,7 @@ def test_workload_not_found(self, client: TestClient, mocker: MockFixture) -> No
147148
response = client.get(f"/jobs/{job_id}/status")
148149

149150
assert response.status_code == 404
150-
mock.assert_called_once_with(job_id, "default")
151+
mock.assert_called_once_with(job_id, None)
151152

152153
def test_workload_metadata_not_found(
153154
self, client: TestClient, mocker: MockFixture

0 commit comments

Comments
 (0)