From ab33b3f341c88ff96dba78bba1a3ddb989b9d053 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 14 Dec 2024 22:06:07 +0100 Subject: [PATCH] Chore: This and that - Increase log level, to also see echoed SQL statements - Re-add placeholder unit test, to satisfy CI - Code formatting - Naming things --- pyproject.toml | 2 ++ ...st_vector_cratedb_single.py => test_vector_cratedb_main.py} | 2 +- tests/unit_tests/test_placeholder.py | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) rename tests/integration_tests/vectorstore/{test_vector_cratedb_single.py => test_vector_cratedb_main.py} (100%) create mode 100644 tests/unit_tests/test_placeholder.py diff --git a/pyproject.toml b/pyproject.toml index 956acdc..a94fba6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,8 @@ markers = [ "compile: mark placeholder test used to compile integration tests without running them", ] asyncio_mode = "auto" +log_level = "DEBUG" +log_cli_level = "DEBUG" [tool.poetry.group.test] optional = true diff --git a/tests/integration_tests/vectorstore/test_vector_cratedb_single.py b/tests/integration_tests/vectorstore/test_vector_cratedb_main.py similarity index 100% rename from tests/integration_tests/vectorstore/test_vector_cratedb_single.py rename to tests/integration_tests/vectorstore/test_vector_cratedb_main.py index 9ef01e9..91129ff 100644 --- a/tests/integration_tests/vectorstore/test_vector_cratedb_single.py +++ b/tests/integration_tests/vectorstore/test_vector_cratedb_main.py @@ -13,7 +13,6 @@ from langchain_cratedb.vectorstores import ( CrateDBVectorStore, ) -from tests.integration_tests.conftest import CONNECTION_STRING from tests.fixtures.filtering_test_cases import ( DOCUMENTS, TYPE_1_FILTERING_TEST_CASES, @@ -23,6 +22,7 @@ TYPE_5_FILTERING_TEST_CASES, TYPE_6_FILTERING_TEST_CASES, ) +from tests.integration_tests.conftest import CONNECTION_STRING from tests.integration_tests.vectorstore.fake_embeddings import ( ADA_TOKEN_COUNT, ConsistentFakeEmbeddingsWithAdaDimension, diff --git a/tests/unit_tests/test_placeholder.py b/tests/unit_tests/test_placeholder.py new file mode 100644 index 0000000..d83b46e --- /dev/null +++ b/tests/unit_tests/test_placeholder.py @@ -0,0 +1,3 @@ +def test_placeholder() -> None: + # Currently, there are no other unit tests yet. + assert 42 == 42