(request)
| 312 | |
| 313 | @pytest.fixture |
| 314 | def 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 | |
| 327 | def test_default_config_file(create_config_file): |