def mock_blockchain_tasks(monkeymodule): from server import bt if will_func_test_blockchain(): print( '~~~NOT Mocking Blockchain Endpoints, Eth Worker will be tested~~~' ) else: print( '~~~Mocking Blockchain Endpoints, Eth Worker will NOT be tested~~~' ) mock_class(bt, MockBlockchainTasker, monkeymodule)
def mock_blockchain_tasks(monkeymodule): from server import bt mock_class(bt, MockBlockchainTasker, monkeymodule)
def mock_misc_tasks(monkeymodule): from server import mt mock_class(mt, MockMiscTasker, monkeymodule)
def mock_ussd_tasks(monkeymodule): from server import ussd_tasker mock_class(ussd_tasker, MockUssdTasker, monkeymodule)