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

Method setUp

tests/capabilities.py:21–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 debug = False
20
21 def setUp(self):
22 db = connection_factory(**self.connect_kwargs)
23 self.connection = db
24 self.cursor = db.cursor()
25 self.BLOBUText = "".join([chr(i) for i in range(16384)])
26 self.BLOBBinary = self.db_module.Binary(
27 ("".join([chr(i) for i in range(256)] * 16)).encode("latin1")
28 )
29
30 leak_test = True
31

Callers

nothing calls this directly

Calls 2

connection_factoryFunction · 0.90
cursorMethod · 0.80

Tested by

no test coverage detected