MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / test_DOUBLE

Method test_DOUBLE

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

Source from the content-addressed store, hash-verified

307 self.check_data_integrity(("col1 INT", "col2 BLOB"), generator)
308
309 def test_DOUBLE(self):
310 for val in (18014398509481982.0, 0.1):
311 self.cursor.execute("SELECT %s", (val,))
312 result = self.cursor.fetchone()[0]
313 self.assertEqual(result, val)
314 self.assertIsInstance(result, float)

Callers

nothing calls this directly

Calls 2

executeMethod · 0.80
fetchoneMethod · 0.45

Tested by

no test coverage detected