MCPcopy
hub / github.com/benoitc/gunicorn / test_worker_class

Function test_worker_class

tests/test_config.py:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def 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
84def test_defaults():

Callers

nothing calls this directly

Calls 2

setMethod · 0.95
load_classFunction · 0.90

Tested by

no test coverage detected