Back to index

python3.2  3.2.2
Classes | Functions
sqlite3.test.factory Namespace Reference

Classes

class  MyConnection
class  MyCursor
class  ConnectionFactoryTests
class  CursorFactoryTests
class  RowFactoryTestsBackwardsCompat
class  RowFactoryTests
class  TextFactoryTests

Functions

def dict_factory
def suite
def test

Function Documentation

def sqlite3.test.factory.dict_factory (   cursor,
  row 
)

Definition at line 31 of file factory.py.

00031 
00032 def dict_factory(cursor, row):
00033     d = {}
00034     for idx, col in enumerate(cursor.description):
00035         d[col[0]] = row[idx]
00036     return d

Here is the call graph for this function:

Definition at line 192 of file factory.py.

00192 
00193 def suite():
00194     connection_suite = unittest.makeSuite(ConnectionFactoryTests, "Check")
00195     cursor_suite = unittest.makeSuite(CursorFactoryTests, "Check")
00196     row_suite_compat = unittest.makeSuite(RowFactoryTestsBackwardsCompat, "Check")
00197     row_suite = unittest.makeSuite(RowFactoryTests, "Check")
00198     text_suite = unittest.makeSuite(TextFactoryTests, "Check")
00199     return unittest.TestSuite((connection_suite, cursor_suite, row_suite_compat, row_suite, text_suite))

Here is the caller graph for this function:

Definition at line 200 of file factory.py.

00200 
00201 def test():
00202     runner = unittest.TextTestRunner()
00203     runner.run(suite())

Here is the call graph for this function: