Artifact 4705567ad36d7299f07877508c9ea8bc2cf4ca33:
- File gluon/contrib/pymysql/tests/base.py — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 531) [annotate] [blame] [check-ins using] [more...]
import pymysql import unittest class PyMySQLTestCase(unittest.TestCase): databases = [ {"host":"localhost","user":"root", "passwd":"","db":"test_pymysql", "use_unicode": True}, {"host":"localhost","user":"root","passwd":"","db":"test_pymysql2"}] def setUp(self): self.connections = [] for params in self.databases: self.connections.append(pymysql.connect(**params)) def tearDown(self): for connection in self.connections: connection.close()