Skip to content

Commit

Permalink
✅(backend) fix test broken by dependencies update
Browse files Browse the repository at this point in the history
Django Rest Framework (DRF) recent updates broke one unit test,
that was checking for a default error message returned by DRF.
Updated the message.
  • Loading branch information
lebaudantoine committed Jul 25, 2024
1 parent 7545f94 commit fff5740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/core/tests/rooms/test_api_rooms_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_api_rooms_retrieve_anonymous_unregistered_not_allowed():
response = client.get("/api/v1.0/rooms/unregistered-room/")

assert response.status_code == 404
assert response.json() == {"detail": "Not found."}
assert response.json() == {"detail": "No Room matches the given query."}


@mock.patch("core.utils.generate_token", return_value="foo")
Expand Down

0 comments on commit fff5740

Please sign in to comment.