From 8d0b71274c4c3228944dd4126a42a6956df14292 Mon Sep 17 00:00:00 2001 From: Roman Sokolov Date: Sat, 14 Dec 2024 15:21:12 +0200 Subject: [PATCH] Solution --- cinema/tests/test_movie_session_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinema/tests/test_movie_session_api.py b/cinema/tests/test_movie_session_api.py index 1bd25f3b..cd1b509b 100644 --- a/cinema/tests/test_movie_session_api.py +++ b/cinema/tests/test_movie_session_api.py @@ -83,7 +83,8 @@ def test_get_movie_sessions_filtered_by_movie(self): def test_get_movie_sessions_filtered_by_movie_and_data(self): movie_sessions = self.client.get( - f"/api/cinema/movie_sessions/?movie="{self.movie.id}&date=2022-09-2" + f"/api/cinema/movie_sessions/?movie=" + f"{self.movie.id}&date=2022-09-2" ) self.assertEqual(movie_sessions.status_code, status.HTTP_200_OK) self.assertEqual(len(movie_sessions.data), 1)