From 474fe4f1435d13f7afe6dca08487d5514fcb40d4 Mon Sep 17 00:00:00 2001 From: Stefano Lottini Date: Tue, 10 Sep 2024 15:19:34 +0200 Subject: [PATCH] Tiny fix to a core test (#313) * bump to 1.4.2 * changes file formatting * fix nonexistent collection name in a (core) failure test --- tests/core/test_async_db_dml.py | 2 +- tests/core/test_db_dml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core/test_async_db_dml.py b/tests/core/test_async_db_dml.py index 5aa6aae3..83148909 100644 --- a/tests/core/test_async_db_dml.py +++ b/tests/core/test_async_db_dml.py @@ -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)") diff --git a/tests/core/test_db_dml.py b/tests/core/test_db_dml.py index 0abb3264..3d69f7d9 100644 --- a/tests/core/test_db_dml.py +++ b/tests/core/test_db_dml.py @@ -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")