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

Class MockConfig

tests/test_uwsgi.py:50–55  ·  view source on GitHub ↗

Mock config object for testing.

Source from the content-addressed store, hash-verified

48
49
50class MockConfig:
51 """Mock config object for testing."""
52
53 def __init__(self, is_ssl=False, uwsgi_allow_ips=None):
54 self.is_ssl = is_ssl
55 self.uwsgi_allow_ips = uwsgi_allow_ips or ['127.0.0.1', '::1']
56
57
58class TestUWSGIPacketConstruction:

Calls

no outgoing calls