From: Allen Chen Date: Thu, 2 Oct 2025 08:31:39 +0000 (+0800) Subject: test: add property let test_suite.py run new test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1249379d45301bfea95336786861637b5b956734;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git test: add property let test_suite.py run new test --- diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 09c93e5c64..3fd0c62e80 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -796,6 +796,11 @@ class SuiteRequirements(Requirements): ASC/DESC but reflects them as expressions (like oracle).""" return exclusions.closed() + @property + def indexes_check_column_order(self): + """target database supports CREATE INDEX with column order check.""" + return exclusions.closed() + @property def indexes_with_expressions(self): """target database supports CREATE INDEX against SQL expressions.""" diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index 6431e88c96..92600530fd 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -2699,6 +2699,7 @@ class ComponentReflectionTestExtra(ComparesIndexes, fixtures.TestBase): ], ) + @testing.requires.indexes_check_column_order def test_index_column_order(self, metadata, inspect_for_table): """test for #12894""" with inspect_for_table("sa_multi_index") as (schema, inspector): diff --git a/test/requirements.py b/test/requirements.py index d69bacaca5..85e07cd935 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -667,6 +667,10 @@ class DefaultRequirements(SuiteRequirements): ] ) + @property + def indexes_check_column_order(self): + return exclusions.open() + @property def indexes_with_expressions(self): return only_on(["postgresql", "sqlite>=3.9.0", "oracle"])