Skip to content

armgit / peach

Public Imported from GitHub
0

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

test(library-shortcuts): 按位置插入的创作者实体补上归一列的值

longmeidao61ac6b30f973
diff --git a/tests/test_web_library_shortcuts.py b/tests/test_web_library_shortcuts.py
index 0149e42fc..e397e2b15 100644
--- a/tests/test_web_library_shortcuts.py
+++ b/tests/test_web_library_shortcuts.py
@@ -105,8 +105,8 @@ class LibraryShortcutsTests(unittest.TestCase):
from peach.web_catalog import entity_ref
with closing(sqlite3.connect(self.path)) as c, c:
c.executescript("""
- INSERT INTO entity VALUES(4,'creator','创作者');
- INSERT INTO entity VALUES(5,'creator','同名待确认');
+ INSERT INTO entity VALUES(4,'creator','创作者','创作者');
+ INSERT INTO entity VALUES(5,'creator','同名待确认','同名待确认');
CREATE TABLE follow_source(id INTEGER PRIMARY KEY,provider TEXT,ref TEXT,entity_id INTEGER,metadata_json TEXT);
INSERT INTO follow_source VALUES(1,'kemono','fanbox/123',4,'{}');
INSERT INTO follow_source VALUES(2,'pawchive','fanbox/123',4,'{}');