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