Skip to content
Snippets Groups Projects
Commit 89b3afe3 authored by jamescalam's avatar jamescalam
Browse files

fix: func schema string test

parent 6f4bf2e0
Branches james/sort-keys-diff
Tags
No related merge requests found
...@@ -283,8 +283,8 @@ class TestSemanticRouter: ...@@ -283,8 +283,8 @@ class TestSemanticRouter:
if index_cls is PineconeIndex: if index_cls is PineconeIndex:
time.sleep(PINECONE_SLEEP) # allow for index to be populated time.sleep(PINECONE_SLEEP) # allow for index to be populated
diff = route_layer_2.get_utterance_diff(include_metadata=True) diff = route_layer_2.get_utterance_diff(include_metadata=True)
assert "+ Route 1: Hello | None | {'type': 'default'}" in diff assert '+ Route 1: Hello | None | {"type": "default"}' in diff
assert "+ Route 1: Hi | None | {'type': 'default'}" in diff assert '+ Route 1: Hi | None | {"type": "default"}' in diff
assert "- Route 1: Hello | None | {}" in diff assert "- Route 1: Hello | None | {}" in diff
assert "+ Route 2: Au revoir | None | {}" in diff assert "+ Route 2: Au revoir | None | {}" in diff
assert "- Route 2: Hi | None | {}" in diff assert "- Route 2: Hi | None | {}" in diff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment