Skip to content

Commit

Permalink
fix rate tv test error
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsr21 committed May 6, 2024
1 parent 4d55ac2 commit 53e20dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions movie-backend/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ def test_rate_movie_fail(self):

def test_rate_tv_show_success(self):
"""Test rate_tv_show()"""
response = self.app.post('/movie/1396/rate', json={
response = self.app.post('/tv/1396/rate', json={
"value" : 10
})
self.assertEqual(response.status_code, 200)
self.assertTrue(response.json['success'])

def test_rate_tv_show_fail(self):
"""Test rate_tv_show()"""
response = self.app.post('/movie/1396/rate', json={
response = self.app.post('/tv/1396/rate', json={
"foo" : "bar"
})
self.assertEqual(response.status_code, 400)
Expand Down

0 comments on commit 53e20dc

Please sign in to comment.