Skip to content

Commit 474fe4f

Browse files
authored
Tiny fix to a core test (#313)
* bump to 1.4.2 * changes file formatting * fix nonexistent collection name in a (core) failure test
1 parent f5f2ba8 commit 474fe4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/core/test_async_db_dml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _cleanvec(doc: Dict[str, Any]) -> Dict[str, Any]:
4040
@pytest.mark.describe("should fail clearing a non-existent collection (async)")
4141
async def test_clear_collection_fail(async_db: AsyncAstraDB) -> None:
4242
with pytest.raises(APIRequestError):
43-
await (await async_db.collection("this$does%not exist!!!")).clear()
43+
await (await async_db.collection("this_does_not_exist")).clear()
4444

4545

4646
@pytest.mark.describe("should clear a nonvector collection (async)")

tests/core/test_db_dml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _cleanvec(doc: Dict[str, Any]) -> Dict[str, Any]:
4242
@pytest.mark.describe("should fail clearing a non-existent collection")
4343
def test_clear_collection_fail(db: AstraDB) -> None:
4444
with pytest.raises(APIRequestError):
45-
db.collection("this$does%not exist!!!").clear()
45+
db.collection("this_does_not_exist").clear()
4646

4747

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

0 commit comments

Comments
 (0)