Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(wants): follow 参数不是数字时按整份清单回话

longmeidao44a93e20cd08
diff --git a/tests/test_wants_web.py b/tests/test_wants_web.py
index 6c4f2c12b..277c75279 100644
--- a/tests/test_wants_web.py
+++ b/tests/test_wants_web.py
@@ -162,6 +162,7 @@ class FollowEntryTests(WantWebFixture):
self.assertEqual((want["origin"], want["follow_item_id"], want["follow_provider"]),
("follow", 9, "rule34video"))
self.assertEqual(self.get(follow="9")["want"]["id"], want["id"])
+ self.assertEqual([row["id"] for row in self.get(follow="abc")["items"]], [want["id"]])
self.post("/api/follow/status", {"item": 9, "to": "ignored"})
self.assertIsNone(self.get(follow="9")["want"])