parent
35c32eccc1
commit
1018859800
@ -0,0 +1,17 @@ |
||||
# -*- coding: utf-8 -*- |
||||
from {{cookiecutter.app_name}}.app import create_app |
||||
from {{cookiecutter.app_name}}.settings import ProdConfig, DevConfig |
||||
|
||||
def test_production_config(): |
||||
app = create_app(ProdConfig) |
||||
assert app.config['ENV'] == 'prod' |
||||
assert app.config['DEBUG'] is False |
||||
assert app.config['DEBUG_TB_ENABLED'] is False |
||||
assert app.config['ASSETS_DEBUG'] is False |
||||
|
||||
|
||||
def test_dev_config(): |
||||
app = create_app(DevConfig) |
||||
assert app.config['ENV'] == 'dev' |
||||
assert app.config['DEBUG'] is True |
||||
assert app.config['ASSETS_DEBUG'] is True |
Loading…
Reference in new issue