(self)
| 143 | self.assertRows(2) |
| 144 | |
| 145 | def testPooling(self): |
| 146 | # can't test pooling if DBUtils is not installed |
| 147 | try: |
| 148 | import dbutils # noqa: F401 |
| 149 | except ImportError: |
| 150 | return |
| 151 | db = setup_database(self.dbname, pooling=True) |
| 152 | try: |
| 153 | self.assertEqual(db.ctx.db.__class__.__module__, "dbutils.pooled_db") |
| 154 | db.select("person", limit=1) |
| 155 | finally: |
| 156 | db.ctx.db.close() |
| 157 | |
| 158 | def test_multiple_insert(self): |
| 159 | db = self.db |
nothing calls this directly
no test coverage detected