Skip to content

Commit f670801

Browse files
committed
fix: reuse of astra client
1 parent 81c288b commit f670801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integrations/astra/tests/test_document_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TestDocumentStore(DocumentStoreBaseTests):
5454
you can add more to this class.
5555
"""
5656

57-
@pytest.fixture
57+
@pytest.fixture(scope="class")
5858
def document_store(self) -> AstraDocumentStore:
5959
return AstraDocumentStore(
6060
collection_name="haystack_integration",

integrations/astra/tests/test_embedding_retrieval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414
@pytest.mark.skipif(os.environ.get("ASTRA_DB_API_ENDPOINT", "") == "", reason="ASTRA_DB_API_ENDPOINT env var not set")
1515
class TestEmbeddingRetrieval:
16-
@pytest.fixture
16+
@pytest.fixture(scope="class")
1717
def document_store(self) -> AstraDocumentStore:
1818
return AstraDocumentStore(
1919
collection_name="haystack_integration",

0 commit comments

Comments
 (0)