From eb0b0cbd8a91cf7942c96b8fd97a9041b3a47acf Mon Sep 17 00:00:00 2001 From: suguanYang Date: Wed, 9 Sep 2026 16:17:15 +0800 Subject: [PATCH] fix(tests): remove duplicate migration contract --- .../tests/migrations/test_schema_contract.py | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/apps/api/tests/migrations/test_schema_contract.py b/apps/api/tests/migrations/test_schema_contract.py index 8c8fc6b2..735ed05c 100644 --- a/apps/api/tests/migrations/test_schema_contract.py +++ b/apps/api/tests/migrations/test_schema_contract.py @@ -435,26 +435,6 @@ def test_should_add_per_channel_map_unit_bm25_statistics( "content_document_count": "YES", "content_total_length": "YES", } -def test_should_create_content_trigram_index_for_regex_search( - migrated_head_engine: Engine, -) -> None: - with migrated_head_engine.begin() as connection: - index_definition = connection.execute( - text( - """ - SELECT pg_get_indexdef(indexes.indexrelid) - FROM pg_index AS indexes - JOIN pg_class AS classes ON classes.oid = indexes.indexrelid - JOIN pg_namespace AS namespaces ON namespaces.oid = classes.relnamespace - WHERE namespaces.nspname = current_schema() - AND classes.relname = 'idx_document_chunks_content_trgm' - """ - ) - ).scalar_one() - - definition = str(index_definition) - assert "USING gin (content gin_trgm_ops)" in definition - assert "WHERE (content IS NOT NULL)" in definition def test_should_upgrade_with_a_caller_owned_connection(