Skip to content

Commit

Permalink
Update expected error messages
Browse files Browse the repository at this point in the history
DRF now passes through Django exception details. Doubtful whether we
should be testing this.
  • Loading branch information
jstvz committed Jun 11, 2024
1 parent 56e3f71 commit 6ddfa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadeploy/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ddfa89

Please sign in to comment.