feat: add time-of-day recommendation context
CI / test (push) Successful in 6m13s

This commit is contained in:
strsv committed 2026-11-06 21:35:10 +03:00
1 parent facacfb751
commit 2dbe457836
12 files changed
+75 -11

No files matched your search

+4
View File
@@ -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")