(self, **params)
| 68 | return self._connections |
| 69 | |
| 70 | def connect(self, **params): |
| 71 | p = self.databases[0].copy() |
| 72 | p.update(params) |
| 73 | conn = pymysql.connect(**p) |
| 74 | |
| 75 | @self.addCleanup |
| 76 | def teardown(): |
| 77 | if conn.open: |
| 78 | conn.close() |
| 79 | |
| 80 | return conn |
| 81 | |
| 82 | def _teardown_connections(self): |
| 83 | if self._connections: |
no outgoing calls