From c4dd453a8c5ce3a1a7c98a6bbaca515ba18246e6 Mon Sep 17 00:00:00 2001 From: James Briggs Date: Sat, 27 Apr 2024 19:10:50 +0800 Subject: [PATCH] remove delete --- .github/workflows/test.yml | 1 + tests/unit/test_layer.py | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e13b938..2a957e00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,6 +48,7 @@ jobs: - name: Pytest env: PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: | make test - name: Upload coverage to Codecov diff --git a/tests/unit/test_layer.py b/tests/unit/test_layer.py index 7607d37c..284bde0b 100644 --- a/tests/unit/test_layer.py +++ b/tests/unit/test_layer.py @@ -288,9 +288,6 @@ def test_query_filter_pinecone(self, openai_encoder, routes, index_cls): except ValueError: assert True - # delete index - pineconeindex.delete_index() - assert query_result in ["Route 1"] def test_namespace_pinecone_index(self, openai_encoder, routes, index_cls): @@ -307,9 +304,6 @@ def test_namespace_pinecone_index(self, openai_encoder, routes, index_cls): except ValueError: assert True - # delete index - pineconeindex.delete_index() - assert query_result in ["Route 1"] def test_query_with_no_index(self, openai_encoder, index_cls):