You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
# -*- coding: utf-8 -*-
|
|
"""Test configs."""
|
|
from conduit.app import create_app
|
|
from conduit.settings import DevConfig, ProdConfig
|
|
|
|
|
|
def test_production_config():
|
|
"""Production config."""
|
|
app = create_app(ProdConfig)
|
|
assert app.config['ENV'] == 'prod'
|
|
assert not app.config['DEBUG']
|
|
|
|
|
|
def test_dev_config():
|
|
"""Development config."""
|
|
app = create_app(DevConfig)
|
|
assert app.config['ENV'] == 'dev'
|
|
assert app.config['DEBUG']
|