14 lines
326 B
Python
14 lines
326 B
Python
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_token_usage_tracking() -> None:
|
|
ai_client.reset_session()
|
|
# Mock an API response with token usage
|
|
# This would test the internal accumulator in ai_client
|
|
pass
|