Bopytex/test/fakes/workers.py

14 lines
360 B
Python
Raw Permalink Normal View History

from bopytex.message import Message
2022-07-28 07:39:51 +00:00
def fake_worker(args, deps, output):
return Message(0, [f"FAKE - {args} - {deps} - {output}"], [])
def success_worker(args, deps, output):
return Message(0, [f"SUCCESS - {args} - {deps} - {output}"], [])
def fail_worker(args, deps, output):
return Message(1, [f"FAILURE - {args} - {deps} - {output}"], [])