Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiiasavkova committed Dec 21, 2024
1 parent 5fc6880 commit 016414c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cinema/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Meta:
fields = ("id", "row", "seat", "movie_session")

def validate(self, data):
data = super(TicketSerializer).validate(data)
data = super().validate(data)
ticket = Ticket(
movie_session=data.get("movie_session"),
row=data.get("row"),
Expand Down
1 change: 0 additions & 1 deletion cinema/tests/test_movie_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def test_get_movies_with_actors_filtering(self):

def test_get_movies_with_title_filtering(self):
movies = self.client.get(f"/api/cinema/movies/?title=ita")
print("Response data:", movies.data)
self.assertEqual(len(movies.data), 1)
movies = self.client.get(f"/api/cinema/movies/?title=ati")
self.assertEqual(len(movies.data), 0)
Expand Down

0 comments on commit 016414c

Please sign in to comment.