mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
refactor: finish transactional runtime migration
This commit is contained in:
@@ -258,6 +258,7 @@ def test_message_oper_listing_entry_points(db):
|
||||
oper = MessageOper(db=db.session)
|
||||
oper.add(title="分页消息", text="正文", source="op-msg-2",
|
||||
reg_time="2026-08-13 10:00:00")
|
||||
db.session.commit()
|
||||
|
||||
assert [m.title for m in oper.list_by_page(page=1, count=1)] == ["分页消息"]
|
||||
assert [m.title for m in asyncio.run(oper.async_list_by_page(page=1, count=1))] == \
|
||||
|
||||
Reference in New Issue
Block a user