def setUpClass(self): chestfreezer_api.start(server_type = "wsgiref") time.sleep(1) chestfreezer_api.configuration.db_type = overwriten_db_type chestfreezer_api.configuration.set_should_send_emails(False) chestfreezer_api.configuration.set_is_security_enabled(True) db_adapter.connect() temperature_probes.initialize_probes() temperature_probes.determine_master_probe() self.http = httplib2.Http(".cache") print
def setUpClass(self): brew_logic.configuration.db_type = overwriten_db_type db_adapter.connect()
def setUp(self): db_adapter.configuration.db_type = overwriten_db_type db_adapter.connect() db_adapter.drop_tables() db_adapter.initialize_tables() temperature_probes.initialize_probes()
def check_and_init_database(): try: db_adapter.connect() print 'Successfully connected to the database.' except Exception as e: sys.exit('Could not connect to database. Error:\n' + str(e) + '\nTerminating.')
def setUpClass(self): db_adapter.configuration.db_type = overwriten_db_type db_adapter.connect() temperature_probes.initialize_probes()