diff --git a/django_app/tests/views/test_api_views.py b/django_app/tests/views/test_api_views.py index 6d757caa..364bbb76 100644 --- a/django_app/tests/views/test_api_views.py +++ b/django_app/tests/views/test_api_views.py @@ -36,7 +36,7 @@ def test_api_view_fail(path_name: str, client: Client): # Then assert response.status_code == HTTPStatus.FORBIDDEN - assert response.json() == {"detail": "Authentication credentials were not provided."} + assert response.json() == {"detail": "No API key provided"} @pytest.mark.django_db()