MCPcopy
hub / github.com/rq/django-rq / test_default_worker_class

Method test_default_worker_class

tests/tests.py:537–539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

535
536class WorkerClassTest(TestCase):
537 def test_default_worker_class(self):
538 worker = get_worker()
539 self.assertIsInstance(worker, Worker)
540
541 @override_settings(RQ={'WORKER_CLASS': 'tests.fixtures.DummyWorker'})
542 def test_custom_class(self):

Callers

nothing calls this directly

Calls 1

get_workerFunction · 0.90

Tested by

no test coverage detected