Exemplo n.º 1
0
 def run(self):
     config.open_config()
     try:
         database.connect()
     except DatabaseConnectionError as db_err:
         raise db_err
Exemplo n.º 2
0
 def setUp(self):
     database.connect(':memory:')
     self.setUpPyfakefs()
Exemplo n.º 3
0
 def setUp(self):
     # IMPORTANT: initialization must be done in this order,
     # otherwise database tries to look for init_db.sql in
     # the fake file system
     database.connect(':memory:')
     self.setUpPyfakefs()