def test_db(self): # the some db commands bypassing the dbserver with Print.patch(), mock.patch( 'openquake.engine.logs.dbcmd', manage.dbcmd): db('version_db') try: db('calc_info 1') except dbapi.NotFound: # happens on an empty db pass
def test_db(self): # the some db commands bypassing the dbserver with Print.patch(), mock.patch( 'openquake.commonlib.logs.dbcmd', manage.fakedbcmd): db('db_version') try: db('calc_info', (1,)) except dbapi.NotFound: # happens on an empty db pass