diff options
author | Gord Thompson <gord@gordthompson.com> | 2021-07-14 09:56:18 -0600 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-07-21 16:14:43 -0400 |
commit | c2ea2b7308a376640cf051d33c7f2f06373487c9 (patch) | |
tree | 40d04bdf8e753e8ea985a1f15d39f65fc0376650 /test/dialect/mssql/test_compiler.py | |
parent | a25d6ead9cf6d2d51ae67e53eac50f642a0bb432 (diff) | |
download | sqlalchemy-c2ea2b7308a376640cf051d33c7f2f06373487c9.tar.gz |
Modernize tests - legacy_select
Change-Id: I04057cc3d3f93de60b02999803e2ba6a23cdf68d
Diffstat (limited to 'test/dialect/mssql/test_compiler.py')
-rw-r--r-- | test/dialect/mssql/test_compiler.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/dialect/mssql/test_compiler.py b/test/dialect/mssql/test_compiler.py index f1f849bf9..b0434115d 100644 --- a/test/dialect/mssql/test_compiler.py +++ b/test/dialect/mssql/test_compiler.py @@ -1069,7 +1069,13 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): t = table("t", column("x", Integer), column("y", Integer)) cols = [t.c.x, t.c.x.label("q"), t.c.x.label("p"), t.c.y] - s = select(cols).where(t.c.x == 5).order_by(t.c.y).limit(10).offset(20) + s = ( + select(*cols) + .where(t.c.x == 5) + .order_by(t.c.y) + .limit(10) + .offset(20) + ) self.assert_compile( s, |