We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6bc4443 + 18d6f8b commit f35bf4cCopy full SHA for f35bf4c
backend/tests/apps/ai/models/context_test.py
@@ -7,7 +7,6 @@
7
8
from apps.ai.models.context import Context
9
from apps.common.models import TimestampedModel
10
-from apps.common.utils import truncate
11
12
13
def create_model_mock(model_class):
@@ -196,8 +195,10 @@ def test_str_method_with_name_attribute(self):
196
195
),
197
):
198
result = str(context)
199
- expected = f"test_model Test Object: {truncate(context.content, 50)}"
200
- assert result == expected
+ assert (
+ result
+ == "test_model Test Object: This is test content that is longer than 50 cha..."
201
+ )
202
203
def test_str_method_with_key_attribute(self):
204
"""Test __str__ method when entity has key but no name attribute."""
0 commit comments