Skip to content

Commit f35bf4c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into MVP
2 parents 6bc4443 + 18d6f8b commit f35bf4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backend/tests/apps/ai/models/context_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from apps.ai.models.context import Context
99
from apps.common.models import TimestampedModel
10-
from apps.common.utils import truncate
1110

1211

1312
def create_model_mock(model_class):
@@ -196,8 +195,10 @@ def test_str_method_with_name_attribute(self):
196195
),
197196
):
198197
result = str(context)
199-
expected = f"test_model Test Object: {truncate(context.content, 50)}"
200-
assert result == expected
198+
assert (
199+
result
200+
== "test_model Test Object: This is test content that is longer than 50 cha..."
201+
)
201202

202203
def test_str_method_with_key_attribute(self):
203204
"""Test __str__ method when entity has key but no name attribute."""

0 commit comments

Comments
 (0)