from bopytex.worker import Dispatcher from .workers import fake_worker, success_worker, fail_worker fake_dispatcher = Dispatcher( { "FAKE": fake_worker, "SUCCESS": success_worker, "FAILURE": fail_worker, } )