From 5081a521a1e9aa73090025f33e256b578490481f Mon Sep 17 00:00:00 2001 From: James Estevez Date: Thu, 4 Apr 2024 13:45:06 -0700 Subject: [PATCH] Update expected error messages DRF now passes through Django exception details. Doubtful whether we should be testing this. See: https://github.com/encode/django-rest-framework/pull/8051 --- metadeploy/api/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadeploy/api/tests/test_views.py b/metadeploy/api/tests/test_views.py index 51b9c1e08..37b80d87a 100644 --- a/metadeploy/api/tests/test_views.py +++ b/metadeploy/api/tests/test_views.py @@ -28,7 +28,7 @@ def test_job__cannot_see(self, client, job_factory): response = client.get(reverse("job-detail", kwargs={"pk": job.id})) assert response.status_code == 404 - assert response.json() == {"detail": "Not found."} + assert response.json() == {"detail": "No Job matches the given query."} def test_job__is_staff(self, client, user_factory, job_factory): staff_user = user_factory(is_staff=True)