LightRAG/tests
BukeLy 4e86da2969 fix: update PostgreSQL migration mock to match actual execute() signature
Why this change is needed:
Unit test mock was rejecting dict parameters, but real PostgreSQLDB.execute()
accepts data as dict[str, Any]. This caused unit tests to fail after fixing
the actual migration code to pass dict instead of unpacked positional args.

How it solves it:
- Changed mock_execute signature from (sql, *args) to (sql, data=None)
- Accept dict parameter like real execute() does
- Mock now matches actual PostgreSQLDB.execute() behavior

Impact:
- Fixes Vector Storage Migration unit tests
- Mock now correctly validates migration code

Testing:
- Unit tests will verify this fix
2025-11-20 03:14:53 +08:00
..
conftest.py Add GitHub CI workflow and test markers for offline/integration tests 2025-11-18 11:36:10 +08:00
README_WORKSPACE_ISOLATION_TESTS.md Fix linting 2025-11-18 08:07:54 +08:00
test_aquery_data_endpoint.py Add GitHub CI workflow and test markers for offline/integration tests 2025-11-18 11:36:10 +08:00
test_base_storage_integrity.py style: fix lint errors (trailing whitespace and formatting) 2025-11-20 01:41:23 +08:00
test_curl_aquery_data.sh Fix linting 2025-10-06 04:57:11 +08:00
test_e2e_multi_instance.py fix: pass workspace to LightRAG instance instead of vector_db_storage_cls_kwargs 2025-11-20 03:09:46 +08:00
test_embedding_func.py style: fix lint errors (trailing whitespace and formatting) 2025-11-20 01:41:23 +08:00
test_empty_model_suffix.py fix: correct assert syntax in test_empty_model_suffix to prevent false positives 2025-11-20 01:57:47 +08:00
test_graph_storage.py Add GitHub CI workflow and test markers for offline/integration tests 2025-11-18 11:36:10 +08:00
test_lightrag_ollama_chat.py Rename test classes to prevent warning from pytest 2025-11-18 13:33:05 +08:00
test_migration_complete.py fix: add backward compatibility for Qdrant legacy collection detection 2025-11-20 01:43:47 +08:00
test_postgres_migration.py fix: update PostgreSQL migration mock to match actual execute() signature 2025-11-20 03:14:53 +08:00
test_postgres_migration_params.py fix: prevent offline tests from failing due to missing E2E dependencies 2025-11-20 02:03:48 +08:00
test_postgres_retry_integration.py Add GitHub CI workflow and test markers for offline/integration tests 2025-11-18 11:36:10 +08:00
test_qdrant_migration.py style: fix lint errors (trailing whitespace and formatting) 2025-11-20 01:41:23 +08:00
test_workspace_isolation.py Fix test to use default workspace parameter behavior 2025-11-18 11:51:17 +08:00
test_write_json_optimization.py Add GitHub CI workflow and test markers for offline/integration tests 2025-11-18 11:36:10 +08:00