Skip to content
Snippets Groups Projects
Commit e804f608 authored by James Briggs's avatar James Briggs
Browse files

fix: delete index before initializing

parent f3a52bd8
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,8 @@ class TestRouteLayer:
def test_add_route(self, routes, openai_encoder, index_cls):
index = init_index(index_cls, sync="local")
# clear the index
index.delete_all()
route_layer = RouteLayer(encoder=openai_encoder, index=index)
# Initially, the local routes list should be empty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment