Skip to content

Commit f383d64

Browse files
committed
test: fix test_sys_message
conversation should not specify invalid objectid
1 parent f12df17 commit f383d64

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_sys_message.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ def setup():
2626

2727

2828
def test_sys_message():
29+
conv = Conversation('testConversation', is_system=True)
30+
conv.save()
2931
msg = SysMessage()
30-
msg.set('conv', Conversation.create_without_data('testconversationid'))
32+
msg.set('conv', conv)
3133
msg.set('bin', False)
3234
msg.set('msgId', 'testmsgid')
3335
msg.set('from', 'testfromclient')

0 commit comments

Comments
 (0)