From 4d55ac2cf033e1c1d907aa9936be319d8640abae Mon Sep 17 00:00:00 2001 From: mhsr21 Date: Mon, 6 May 2024 01:42:19 -0400 Subject: [PATCH] change test scenario :) --- movie-backend/test_backend.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/movie-backend/test_backend.py b/movie-backend/test_backend.py index 4af8349..bc6dd93 100644 --- a/movie-backend/test_backend.py +++ b/movie-backend/test_backend.py @@ -22,9 +22,9 @@ def test_get_popular_tv_show(self): def test_get_movie_details(self): """Test get_movie_details()""" - response = self.app.get('/movie/12') + response = self.app.get('/movie/559969') self.assertEqual(response.status_code, 200) - self.assertIn('Finding Nemo', response.json['title']) + self.assertIn('El Camino: A Breaking Bad Movie', response.json['title']) def test_get_tv_details(self): """Test get_tv_details()""" @@ -34,7 +34,7 @@ def test_get_tv_details(self): def test_search_movies(self): """Test search_movies()""" - response = self.app.get('/search/movie?query=finding nemo') + response = self.app.get('/search/movie?query=el camino') self.assertEqual(response.status_code, 200) self.assertIn('total_results', response.json) @@ -46,7 +46,7 @@ def test_search_tv_shows(self): def test_rate_movie_success(self): """Test rate_movie()""" - response = self.app.post('/movie/12/rate', json={ + response = self.app.post('/movie/559969/rate', json={ "value" : 10 }) self.assertEqual(response.status_code, 200) @@ -54,7 +54,7 @@ def test_rate_movie_success(self): def test_rate_movie_fail(self): """Test rate_movie()""" - response = self.app.post('/movie/12/rate', json={ + response = self.app.post('/movie/559969/rate', json={ "foo" : "bar" }) self.assertEqual(response.status_code, 400)