def xtrigger_mgr() -> XtriggerManager: """A fixture to build an XtriggerManager that ignores validation. Returns: XtriggerManager: an XtriggerManager that ignores validation """ xtrigger_mgr = XtriggerManager(suite="suitea", user="******") xtrigger_mgr.validate_xtrigger = lambda fn, fdir: True return xtrigger_mgr
def xtrigger_mgr_procpool() -> XtriggerManager: """A fixture to build an XtriggerManager that ignores validation, and uses a mocked proc_pool. Returns: XtriggerManager: an XtriggerManager that ignores validation and uses a mocked proc_pool """ xtrigger_mgr = XtriggerManager(suite="suitea", user="******", proc_pool=MockedProcPool()) xtrigger_mgr.validate_xtrigger = lambda fn, fdir: True return xtrigger_mgr
def xtrigger_mgr_procpool_broadcast() -> XtriggerManager: """A fixture to build an XtriggerManager that ignores validation, uses a mocked proc_pool, and uses a mocked broadacast_mgr. Returns: XtriggerManager: an XtriggerManager that ignores validation, uses a mocked proc_pool, and uses a mocked broadacast_mgr """ xtrigger_mgr = XtriggerManager(suite="sample_suite", user="******", proc_pool=MockedProcPool(), broadcast_mgr=MockedBroadcastMgr( suite_db_mgr=None, data_store_mgr=None)) xtrigger_mgr.validate_xtrigger = lambda fn, fdir: True return xtrigger_mgr