MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / setUp

Method setUp

tests/test_MySQLdb_nonstandard.py:122–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 """Test charset and collation connection options."""
121
122 def setUp(self):
123 # Initialize a connection with a non-default character set and
124 # collation.
125 self.conn = connection_factory(
126 charset="utf8mb4",
127 collation="utf8mb4_esperanto_ci",
128 )
129
130 def tearDown(self):
131 self.conn.close()

Callers

nothing calls this directly

Calls 1

connection_factoryFunction · 0.90

Tested by

no test coverage detected