MCPcopy
hub / github.com/psycopg/psycopg / test_paramstyle

Method test_paramstyle

tests/dbapi20.py:177–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 self.fail("Driver doesn't define threadsafety")
176
177 def test_paramstyle(self):
178 try:
179 # Must exist
180 paramstyle = self.driver.paramstyle
181 # Must be a valid value
182 self.assertTrue(paramstyle in (
183 'qmark','numeric','named','format','pyformat'
184 ))
185 except AttributeError:
186 self.fail("Driver doesn't define paramstyle")
187
188 def test_Exceptions(self):
189 # Make sure required exceptions exist, and are in the

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected