Skip to content

Commit

Permalink
refactor: add tests for ImagineLA and CAEDD
Browse files Browse the repository at this point in the history
  • Loading branch information
fg-nava committed Dec 18, 2024
1 parent ae99a19 commit d1a4084
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/tests/src/test_chat_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from src import chat_engine
from src.chat_engine import CaEddWebEngine, ImagineLaEngine


def test_available_engines():
Expand All @@ -7,3 +8,19 @@ def test_available_engines():
assert len(engines) > 0
assert "ca-edd-web" in engines
assert "imagine-la" in engines


def test_create_engine_CA_EDD():
engine_id = "ca-edd-web"
engine = chat_engine.create_engine(engine_id)
assert engine is not None
assert engine.name == CaEddWebEngine.name
assert engine.datasets == ["CA EDD"]


def test_create_engine_Imagine_LA():
engine_id = "imagine-la"
engine = chat_engine.create_engine(engine_id)
assert engine is not None
assert engine.name == ImagineLaEngine.name
assert engine.datasets == ["CA EDD", "Imagine LA"]

0 comments on commit d1a4084

Please sign in to comment.