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

Function create_config_file

tests/test_config.py:314–324  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

312
313@pytest.fixture
314def create_config_file(request):
315 default_config = os.path.join(os.path.abspath(os.getcwd()),
316 'gunicorn.conf.py')
317 with open(default_config, 'w+') as default:
318 default.write("bind='0.0.0.0:9090'")
319
320 def fin():
321 os.unlink(default_config)
322 request.addfinalizer(fin)
323
324 return default
325
326
327def test_default_config_file(create_config_file):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected