MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / Dialog

Class Dialog

pymysql/tests/test_connection.py:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 pymysql.connect(user=TestAuthentication.osuser, **self.db)
150
151 class Dialog:
152 fail = False
153
154 def __init__(self, con):
155 self.fail = TestAuthentication.Dialog.fail
156
157 def prompt(self, echo, prompt):
158 if self.fail:
159 self.fail = False
160 return b"bad guess at a password"
161 return self.m.get(prompt)
162
163 class DialogHandler:
164 def __init__(self, con):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected