# Path: flask_editablesite/app.py
# def create_app(config_object=ProdConfig):
#     """An application factory, as explained here:
#         http://flask.pocoo.org/docs/patterns/appfactories/
# 
#     :param config_object: The configuration object to use.
#     """
#     app = Flask(__name__)
#     app.config.from_object(config_object)
#     register_loggers(app)
#     register_extensions(app)
#     register_blueprints(app)
#     register_errorhandlers(app)
#     return app
# 
# Path: flask_editablesite/settings.py
# class ProdConfig(Config):
#     """Production configuration."""
#     ENV = 'prod'
#     DEBUG = False
#     DEBUG_TB_ENABLED = False  # Disable Debug toolbar
# 
# class DevConfig(Config):
#     """Development configuration."""
#     ENV = 'dev'
#     DEBUG = True
#     DEBUG_TB_ENABLED = True
#     ASSETS_DEBUG = True  # Don't bundle/minify static assets


from flask_editablesite.app import create_app
from flask_editablesite.settings import ProdConfig, DevConfig
# -*- coding: utf-8 -*-


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():

# Path: flask_editablesite/app.py
# def create_app(config_object=ProdConfig):
#     """An application factory, as explained here:
#         http://flask.pocoo.org/docs/patterns/appfactories/
# 
#     :param config_object: The configuration object to use.
#     """
#     app = Flask(__name__)
#     app.config.from_object(config_object)
#     register_loggers(app)
#     register_extensions(app)
#     register_blueprints(app)
#     register_errorhandlers(app)
#     return app
# 
# Path: flask_editablesite/settings.py
# class ProdConfig(Config):
#     """Production configuration."""
#     ENV = 'prod'
#     DEBUG = False
#     DEBUG_TB_ENABLED = False  # Disable Debug toolbar
# 
# class DevConfig(Config):
#     """Development configuration."""
#     ENV = 'dev'
#     DEBUG = True
#     DEBUG_TB_ENABLED = True
#     ASSETS_DEBUG = True  # Don't bundle/minify static assets


# Path: tests/test_config.py
from flask_editablesite.app import create_app
from flask_editablesite.settings import ProdConfig, DevConfig

# -*- coding: utf-8 -*-


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)