Fix failing unit tests by hard-coding model presence of expected search types

This commit is contained in:
Saba
2023-06-13 16:32:47 -07:00
parent 019d3732de
commit 3a61919344
2 changed files with 5 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ class TestTruncateMessage:
def test_truncate_message_first_large(self):
chat_messages = ChatMessageFactory.build_batch(25)
big_chat_message = ChatMessageFactory.build(content=factory.Faker("paragraph", nb_sentences=1000))
big_chat_message = ChatMessageFactory.build(content=factory.Faker("paragraph", nb_sentences=2000))
big_chat_message.content = big_chat_message.content + "\n" + "Question?"
copy_big_chat_message = big_chat_message.copy()
chat_messages.insert(0, big_chat_message)