Spaces:
Runtime error
Runtime error
File size: 517 Bytes
ef4248d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import unittest
import sys
import os
# Add the src directory to PYTHONPATH
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))
from src.backend.ai_chat import MultiAIChat
class TestMultiAIChat(unittest.TestCase):
def test_openai_chat(self):
chat = MultiAIChat("fake_openai_key", "fake_huggingface_key", "fake_anthropic_key")
response = "Hello" # Simulated response
self.assertEqual(response, "Hello")
if __name__ == "__main__":
unittest.main()
|