()
| 70 | |
| 71 | |
| 72 | def test_worker_class(): |
| 73 | |
| 74 | c = config.Config() |
| 75 | c.set("worker_class", CustomWorker) |
| 76 | assert c.worker_class == CustomWorker |
| 77 | |
| 78 | try: |
| 79 | assert isinstance(load_class(c.worker_class), object) |
| 80 | except AttributeError: |
| 81 | pytest.fail("'load_class doesn't support type class argument'") |
| 82 | |
| 83 | |
| 84 | def test_defaults(): |
nothing calls this directly
no test coverage detected