Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrycojones/9111253 to your computer and use it in GitHub Desktop.
Save terrycojones/9111253 to your computer and use it in GitHub Desktop.
class FakeCursor(object):
def close(self):
pass
class FakeDbConnection(object):
def __init__(self, result):
self._result = result
def cursor(self):
return FakeCursor()
def execute(self, query):
return self._result
def close(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment