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

Method test_show_config

tests/ctl/test_handlers.py:157–166  ·  view source on GitHub ↗

Test showing config.

(self)

Source from the content-addressed store, hash-verified

155 """Tests for show config command."""
156
157 def test_show_config(self):
158 """Test showing config."""
159 arbiter = MockArbiter()
160 handlers = CommandHandlers(arbiter)
161
162 result = handlers.show_config()
163
164 assert result["workers"] == 4
165 assert result["timeout"] == 30
166 assert result["bind"] == ['127.0.0.1:8000']
167
168
169class TestShowListeners:

Callers

nothing calls this directly

Calls 3

show_configMethod · 0.95
CommandHandlersClass · 0.90
MockArbiterClass · 0.70

Tested by

no test coverage detected