Skip to content

Commit

Permalink
Tiny fix to a core test (#313)
Browse files Browse the repository at this point in the history
* bump to 1.4.2

* changes file formatting

* fix nonexistent collection name in a (core) failure test
  • Loading branch information
hemidactylus authored Sep 10, 2024
1 parent f5f2ba8 commit 474fe4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/core/test_async_db_dml.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _cleanvec(doc: Dict[str, Any]) -> Dict[str, Any]:
@pytest.mark.describe("should fail clearing a non-existent collection (async)")
async def test_clear_collection_fail(async_db: AsyncAstraDB) -> None:
with pytest.raises(APIRequestError):
await (await async_db.collection("this$does%not exist!!!")).clear()
await (await async_db.collection("this_does_not_exist")).clear()


@pytest.mark.describe("should clear a nonvector collection (async)")
Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_db_dml.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _cleanvec(doc: Dict[str, Any]) -> Dict[str, Any]:
@pytest.mark.describe("should fail clearing a non-existent collection")
def test_clear_collection_fail(db: AstraDB) -> None:
with pytest.raises(APIRequestError):
db.collection("this$does%not exist!!!").clear()
db.collection("this_does_not_exist").clear()


@pytest.mark.describe("should clear a nonvector collection")
Expand Down

0 comments on commit 474fe4f

Please sign in to comment.