MCPcopy
hub / github.com/psycopg/psycopg / _connect

Method _connect

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

Source from the content-addressed store, hash-verified

145 con.close()
146
147 def _connect(self):
148 try:
149 return self.driver.connect(
150 *self.connect_args,**self.connect_kw_args
151 )
152 except AttributeError:
153 self.fail("No connect method found in self.driver module")
154
155 def test_connect(self):
156 con = self._connect()

Callers 15

tearDownMethod · 0.95
test_connectMethod · 0.95
test_commitMethod · 0.95
test_rollbackMethod · 0.95
test_cursorMethod · 0.95
test_cursor_isolationMethod · 0.95
test_descriptionMethod · 0.95
test_rowcountMethod · 0.95
test_callprocMethod · 0.95
test_closeMethod · 0.95
test_executeMethod · 0.95

Calls 2

connectMethod · 0.45
failMethod · 0.45

Tested by 15

test_connectMethod · 0.76
test_commitMethod · 0.76
test_rollbackMethod · 0.76
test_cursorMethod · 0.76
test_cursor_isolationMethod · 0.76
test_descriptionMethod · 0.76
test_rowcountMethod · 0.76
test_callprocMethod · 0.76
test_closeMethod · 0.76
test_executeMethod · 0.76
test_executemanyMethod · 0.76