diff --git a/ref-test/app/config.py b/ref-test/app/config.py index b70db97..e62ead5 100644 --- a/ref-test/app/config.py +++ b/ref-test/app/config.py @@ -28,10 +28,10 @@ class Config(object): MAIL_SUPPRESS_SEND = False MAIL_ASCII_ATTACHMENTS = bool(os.getenv('MAIL_ASCII_ATTACHMENTS')) -class ProductionConfig(Config): +class Production(Config): pass -class DevelopmentConfig(Config): +class Development(Config): APP_HOST = '127.0.0.1' DEBUG = True SESSION_COOKIE_SECURE = False @@ -39,7 +39,7 @@ class DevelopmentConfig(Config): MAIL_DEBUG = True MAIL_SUPPRESS_SEND = False -class TestingConfig(DevelopmentConfig): +class Testing(Development): TESTING = True SESSION_COOKIE_SECURE = False MAIL_SERVER = os.getenv('MAIL_SERVER') diff --git a/ref-test/config.py b/ref-test/config.py index beea69e..c21f59c 100644 --- a/ref-test/config.py +++ b/ref-test/config.py @@ -1 +1 @@ -from app.config import ProductionConfig as Config \ No newline at end of file +from app.config import Production as Config \ No newline at end of file diff --git a/ref-test/main.py b/ref-test/main.py index 40826af..97a4d09 100644 --- a/ref-test/main.py +++ b/ref-test/main.py @@ -80,5 +80,4 @@ def create_app(): app = create_app() -if __name__ == '__main__': - app.run() \ No newline at end of file +if __name__ == '__main__': app.run() \ No newline at end of file diff --git a/ref-test/wsgi.py b/ref-test/wsgi.py index b9a49b9..b7bcfb6 100644 --- a/ref-test/wsgi.py +++ b/ref-test/wsgi.py @@ -1,4 +1,2 @@ from main import app - -if __name__ == '__main__': - app.run() \ No newline at end of file +if __name__ == '__main__': app.run() \ No newline at end of file