mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 13:34:53 +03:00
Remove test for CONN_MAX_AGE value in settings
This commit is contained in:
parent
829c3364f8
commit
726f0f017a
|
@ -84,14 +84,3 @@ def test_flake8_compliance(cookies):
|
|||
sh.flake8(str(result.project))
|
||||
except sh.ErrorReturnCode as e:
|
||||
pytest.fail(e)
|
||||
|
||||
|
||||
def test_connection_max_age(cookies):
|
||||
result = cookies.bake()
|
||||
|
||||
prod_config_file = result.project.join('config', 'settings', 'production.py')
|
||||
prod_config_lines = prod_config_file.read()
|
||||
|
||||
expected = "DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default=60)"
|
||||
|
||||
assert expected in prod_config_lines
|
||||
|
|
Loading…
Reference in New Issue
Block a user