Skip to content

Commit

Permalink
fix: single utt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Dec 15, 2024
1 parent 8f0f65b commit 3da48cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_add_single_utterance(
index=index,
auto_sync="local",
)
route_layer.add(routes=[route_single_utterance])
route_layer.add(routes=route_single_utterance)
assert route_layer.score_threshold == openai_encoder.score_threshold
if index_cls is PineconeIndex:
time.sleep(PINECONE_SLEEP) # allow for index to be updated
Expand All @@ -286,7 +286,7 @@ def test_init_and_add_single_utterance(
)
if index_cls is PineconeIndex:
time.sleep(PINECONE_SLEEP) # allow for index to be updated
route_layer.add(routes=[route_single_utterance])
route_layer.add(routes=route_single_utterance)
assert route_layer.score_threshold == openai_encoder.score_threshold
_ = route_layer("Hello")
assert len(route_layer.index.get_utterances()) == 1
Expand Down

0 comments on commit 3da48cd

Please sign in to comment.