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

Method test_client_flag

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

Source from the content-addressed store, hash-verified

96 )
97
98 def test_client_flag(self):
99 conn = connection_factory(
100 use_unicode=True, client_flag=MySQLdb.constants.CLIENT.FOUND_ROWS
101 )
102
103 self.assertIsInstance(conn.client_flag, int)
104 self.assertTrue(conn.client_flag & MySQLdb.constants.CLIENT.FOUND_ROWS)
105 with self.assertRaises(AttributeError):
106 conn.client_flag = 0
107
108 conn.close()
109
110 def test_fileno(self):
111 self.assertGreaterEqual(self.conn.fileno(), 0)

Callers

nothing calls this directly

Calls 2

connection_factoryFunction · 0.90
closeMethod · 0.80

Tested by

no test coverage detected