mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
fix emergency bug
This commit is contained in:
parent
122e6875a5
commit
c8f5adc96e
@ -168,6 +168,7 @@ class NewMessageProcessMixin(StorageMixinProto, MessageProcessMixin, abstract=Tr
|
||||
if post_id in store.exists_posts:
|
||||
continue
|
||||
res.append(raw_post)
|
||||
store.exists_posts.add(post_id)
|
||||
self.set_stored_data(target, store)
|
||||
return res
|
||||
|
||||
|
@ -276,6 +276,8 @@ async def test_new_message_no_target(mock_platform_no_target, user_info_factory)
|
||||
assert('p2' in id_set_1 and 'p3' in id_set_1)
|
||||
assert('p2' in id_set_2)
|
||||
assert('p2' in id_set_3)
|
||||
res3 = await mock_platform_no_target.fetch_new_post('dummy', [user_info_factory(lambda _: [1,2], lambda _: [])])
|
||||
assert(len(res3) == 0)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_status_change(mock_status_change, user_info_factory):
|
||||
|
Loading…
x
Reference in New Issue
Block a user