def engdb(): """Setup the service to operate through the mock service""" with EngDB_Mocker(): yield engdb_tools.ENGDB_Service()
def eng_db_jw703(): """Setup the test engineering database""" with EngDB_Mocker(db_path=db_jw703_path): engdb = engdb_tools.ENGDB_Service() yield engdb
def engdb(): """Setup the mock engineering database""" db_path = Path(__file__).parents[1] / 'lib' / 'tests' / 'data' / 'engdb' with EngDB_Mocker(db_path=db_path): engdb = engdb_tools.ENGDB_Service(base_url='http://localhost') yield engdb
def engdb_service(): """Setup the service to operate through the mock service""" with EngDB_Mocker(): yield engdb_tools.ENGDB_Service(base_url='http://localhost')
def engdb(): with EngDB_Mocker() as mocker: # noqa: F841 yield
def eng_db_ngas(): """Setup the test engineering database""" with EngDB_Mocker(db_path=db_ngas_path): engdb = engdb_tools.ENGDB_Service(base_url='http://localhost') yield engdb