summaryrefslogtreecommitdiff
path: root/test/orm/test_bind.py
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-07-04 15:56:40 -0600
committerGord Thompson <gord@gordthompson.com>2021-07-04 15:56:40 -0600
commit4ff4760fade8020df0418005e0fdd130ed3589a4 (patch)
tree661b4d731047ba27863b40f79ef65234e9b4a273 /test/orm/test_bind.py
parentb920869ef54d05e73e2a980b73647d6050ffeb9d (diff)
downloadsqlalchemy-4ff4760fade8020df0418005e0fdd130ed3589a4.tar.gz
Modernize tests - select(whereclause)
Change-Id: I306cfbea9920b35100e3087dcc21d7ffa6c39c55
Diffstat (limited to 'test/orm/test_bind.py')
-rw-r--r--test/orm/test_bind.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/orm/test_bind.py b/test/orm/test_bind.py
index f448e2c52..f584f22ae 100644
--- a/test/orm/test_bind.py
+++ b/test/orm/test_bind.py
@@ -73,13 +73,15 @@ class BindIntegrationTest(_fixtures.FixtureTest):
sess.execute(users_unbound.insert(), params=dict(id=2, name="jack"))
eq_(
sess.execute(
- users_unbound.select(users_unbound.c.id == 2)
+ users_unbound.select().where(users_unbound.c.id == 2)
).fetchall(),
[(2, "jack")],
)
eq_(
- sess.execute(users_unbound.select(User.id == 2)).fetchall(),
+ sess.execute(
+ users_unbound.select().where(User.id == 2)
+ ).fetchall(),
[(2, "jack")],
)
@@ -133,13 +135,15 @@ class BindIntegrationTest(_fixtures.FixtureTest):
eq_(
sess.execute(
- users_unbound.select(users_unbound.c.id == 2)
+ users_unbound.select().where(users_unbound.c.id == 2)
).fetchall(),
[(2, "jack")],
)
eq_(
- sess.execute(users_unbound.select(User.id == 2)).fetchall(),
+ sess.execute(
+ users_unbound.select().where(User.id == 2)
+ ).fetchall(),
[(2, "jack")],
)