This commit is contained in:
1 parent
facacfb751
commit
2dbe457836
12 files changed
+75
-11
No files matched your search
@@ -363,6 +363,10 @@ class ApiTests(unittest.TestCase):
|
||||
"limit": 5})
|
||||
self.assertTrue(data["results"])
|
||||
|
||||
data = self.post("/api/recommend", {"preset": "horror-night", "time_of_day": "night",
|
||||
"limit": 5})
|
||||
self.assertTrue(data["results"])
|
||||
|
||||
def test_recommend_unknown_mood(self):
|
||||
data = self.post("/api/recommend", {"preset": "no-such-mood"}, expect=400)
|
||||
self.assertEqual(data["error"], "unknown mood")
|
||||
|
||||
Reference in new issue
Block a user