diff options
author | Peter Hoffmann <ph@peter-hoffmann.com> | 2015-05-05 16:00:09 +0200 |
---|---|---|
committer | Peter Hoffmann <ph@peter-hoffmann.com> | 2015-05-05 16:00:09 +0200 |
commit | bcc8e6c02b0fd063bf85edc5369899e5717d0232 (patch) | |
tree | 0547cdecdefdeb32a7c11cddec3fa127842732d6 | |
parent | 8ac2bec0292daaefdfd4062a209ae4c44ba6d690 (diff) | |
download | sqlalchemy-pr/171.tar.gz |
Mark tests that they require OFFSET support in databasepr/171
The sqlalchemy_exasol dialect needs to support Exasol 4.x which does not support
the OFFSET feature. Mark test with testing.requires.offset so that they can be skipped
of in the exasol specific test suite.
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_select.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py index eaf3f03c2..d4bf63b55 100644 --- a/lib/sqlalchemy/testing/suite/test_select.py +++ b/lib/sqlalchemy/testing/suite/test_select.py @@ -131,6 +131,7 @@ class LimitOffsetTest(fixtures.TablesTest): [(1, 1, 2), (2, 2, 3)] ) + @testing.requires.offset def test_simple_offset(self): table = self.tables.some_table self._assert_result( @@ -138,13 +139,15 @@ class LimitOffsetTest(fixtures.TablesTest): [(3, 3, 4), (4, 4, 5)] ) + @testing.requires.offset def test_simple_limit_offset(self): table = self.tables.some_table self._assert_result( select([table]).order_by(table.c.id).limit(2).offset(1), [(2, 2, 3), (3, 3, 4)] ) - + + @testing.requires.offset def test_limit_offset_nobinds(self): """test that 'literal binds' mode works - no bound params.""" |