(self, local_connection)
| 366 | eq_(len(result.fetchall()), 3) |
| 367 | |
| 368 | def test_close2(self, local_connection): |
| 369 | connection = local_connection |
| 370 | users = self.tables.users |
| 371 | transaction = connection.begin() |
| 372 | connection.execute(users.insert(), dict(user_id=1, user_name="user1")) |
| 373 | connection.execute(users.insert(), dict(user_id=2, user_name="user2")) |
| 374 | connection.execute(users.insert(), dict(user_id=3, user_name="user3")) |
| 375 | assert connection.in_transaction() |
| 376 | transaction.close() |
| 377 | assert not connection.in_transaction() |
| 378 | result = connection.exec_driver_sql("select * from users") |
| 379 | assert len(result.fetchall()) == 0 |
| 380 | |
| 381 | @testing.requires.independent_connections |
| 382 | def test_no_rollback_in_deactive(self, local_connection): |
nothing calls this directly
no test coverage detected