Skip to content

Commit ada4a36

Browse files
committed
Add extra movie test
1 parent c2ee579 commit ada4a36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/movies/test_ids.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ def test_get_movie_info(mock_permissions, client):
55
assert resp.json()["foilHoleId"] == 1
66
assert resp.json()["gridSquareId"] == 1
77

8+
def test_inexistent(mock_permissions, client):
9+
"""Should raise exception if movie not in database"""
10+
resp = client.get("/movies/9999")
11+
assert resp.status_code == 404

0 commit comments

Comments
 (0)