diff options
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/test_resultset.py | 11 | ||||
| -rw-r--r-- | test/sql/test_types.py | 1 |
2 files changed, 2 insertions, 10 deletions
diff --git a/test/sql/test_resultset.py b/test/sql/test_resultset.py index 2deec3f82..9ef533be3 100644 --- a/test/sql/test_resultset.py +++ b/test/sql/test_resultset.py @@ -310,9 +310,7 @@ class CursorResultTest(fixtures.TablesTest): addresses.insert(), address_id=1, user_id=2, address="foo@bar.com" ) - r = connection.execute( - text("select * from addresses", bind=testing.db) - ).first() + r = connection.execute(text("select * from addresses")).first() eq_(r[0:1], (1,)) eq_(r[1:], (2, "foo@bar.com")) eq_(r[:-1], (1, 2)) @@ -327,9 +325,7 @@ class CursorResultTest(fixtures.TablesTest): addresses.insert(), address_id=1, user_id=2, address="foo@bar.com" ) - r = connection.execute( - text("select * from addresses", bind=testing.db) - ) + r = connection.execute(text("select * from addresses")) eq_( r.mappings().all(), [{"address_id": 1, "user_id": 2, "address": "foo@bar.com"}], @@ -483,7 +479,6 @@ class CursorResultTest(fixtures.TablesTest): "from users " "UNION select users.user_id, " "users.user_name from users", - bind=testing.db, ).execution_options(sqlite_raw_colnames=True) ).first() @@ -513,7 +508,6 @@ class CursorResultTest(fixtures.TablesTest): "from users " "UNION select users.user_id, " "users.user_name from users", - bind=testing.db, ) ).first() eq_(r._mapping["user_id"], 1) @@ -538,7 +532,6 @@ class CursorResultTest(fixtures.TablesTest): 'select users.user_id AS "users.user_id", ' 'users.user_name AS "users.user_name" ' "from users", - bind=testing.db, ).execution_options(sqlite_raw_colnames=True) ).first() eq_(r._mapping["users.user_id"], 1) diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 7cba3b450..fd1783e09 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -2174,7 +2174,6 @@ class BinaryTest(fixtures.TestBase, AssertsExecutionResults): binary_table.select(order_by=binary_table.c.primary_id), text( "select * from binary_table order by binary_table.primary_id", - bind=testing.db, ).columns( **{ "pickled": PickleType, |
