15 lines
352 B
Python
15 lines
352 B
Python
import pytest
|
|
import sys
|
|
import os
|
|
|
|
# Ensure project root is in path
|
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
|
|
|
import ai_client
|
|
|
|
def test_history_truncation_logic():
|
|
ai_client.reset_session()
|
|
ai_client.history_trunc_limit = 50
|
|
# Add history and verify it gets truncated when it exceeds limit
|
|
pass
|