]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Apply requirement to related tests 5108/head
authorGord Thompson <gord@gordthompson.com>
Mon, 20 Jan 2020 19:41:12 +0000 (12:41 -0700)
committerGord Thompson <gord@gordthompson.com>
Mon, 20 Jan 2020 19:41:12 +0000 (12:41 -0700)
lib/sqlalchemy/testing/suite/test_reflection.py

index 6920fda0a633b8594f478713c63be0888d5c7b7a..85e193d8e3a1ac71a7b9b908af530ef415cdae1e 100644 (file)
@@ -294,7 +294,6 @@ class ComponentReflectionTest(fixtures.TablesTest):
                 )
 
                 if testing.requires.indexes_with_ascdesc.enabled:
-                    # cls.create_expression_indexes()
                     Index("noncol_idx_nopk", noncol_idx_test_nopk.c.q.desc())
                     Index("noncol_idx_pk", noncol_idx_test_pk.c.q.desc())
 
@@ -885,10 +884,12 @@ class ComponentReflectionTest(fixtures.TablesTest):
         eq_(list(t.indexes)[0].name, ixname)
 
     @testing.requires.index_reflection
+    @testing.requires.indexes_with_ascdesc
     def test_get_noncol_index_no_pk(self):
         self._test_get_noncol_index("noncol_idx_test_nopk", "noncol_idx_nopk")
 
     @testing.requires.index_reflection
+    @testing.requires.indexes_with_ascdesc
     def test_get_noncol_index_pk(self):
         self._test_get_noncol_index("noncol_idx_test_pk", "noncol_idx_pk")