Skip to content

Commit

Permalink
scoping indexing collections to function for api limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus committed Jan 30, 2024
1 parent 950ba89 commit 8c27557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def writable_nonv_collection(db: AstraDB) -> Iterable[AstraDBCollection]:
db.delete_collection(TEST_WRITABLE_NONVECTOR_COLLECTION)


@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def allowindex_nonv_collection(db: AstraDB) -> Iterable[AstraDBCollection]:
"""
This is lasting for the whole test. Functions can write to it,
Expand All @@ -207,7 +207,7 @@ def allowindex_nonv_collection(db: AstraDB) -> Iterable[AstraDBCollection]:
db.delete_collection(TEST_WRITABLE_ALLOWINDEX_NONVECTOR_COLLECTION)


@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def denyindex_nonv_collection(db: AstraDB) -> Iterable[AstraDBCollection]:
"""
This is lasting for the whole test. Functions can write to it,
Expand Down

0 comments on commit 8c27557

Please sign in to comment.