T-566 封面历史归档数据层
This commit is contained in:
+8
-1
@@ -2151,7 +2151,14 @@ class GuiTests(TempDirMixin, unittest.TestCase):
|
||||
self.assertEqual("success", updated.status)
|
||||
self.assertIsNone(updated.new_title)
|
||||
self.assertIsNone(updated.new_cover_path)
|
||||
self.assertTrue(os.path.exists(new_cover))
|
||||
self.assertFalse(os.path.exists(new_cover))
|
||||
archived_covers = [
|
||||
filename
|
||||
for filename in os.listdir(temp_dir)
|
||||
if filename.startswith("new_") and filename.endswith(".jpg")
|
||||
]
|
||||
self.assertEqual(1, len(archived_covers))
|
||||
self.assertTrue(os.path.exists(os.path.join(temp_dir, archived_covers[0])))
|
||||
run_log = db.list_run_logs(limit=1, run_type="reset", path=cfg["db_path"])[0]
|
||||
self.assertEqual("done", run_log.status)
|
||||
self.assertEqual("reset_generated", run_log.options["action"])
|
||||
|
||||
Reference in New Issue
Block a user