Browse Source

Include Flask-Testing and remove use of testing config file in main application creation.

develop
Sam Black 6 years ago
parent
commit
58ed721d2a
  1. 1
      requirements.testing.txt
  2. 3
      vowel/web.py

1
requirements.testing.txt

@ -3,3 +3,4 @@ nose
coverage
nose-cov
selenium
flask-testing

3
vowel/web.py

@ -57,13 +57,12 @@ def create_app():
"""
Create vowel web app frontend.
:return: vowel webfrontend
:return: vowel web frontend
:rtype: Flask
"""
app = Flask(__name__, instance_relative_config=True)
app.config.from_object("vowel.config")
app.config.from_pyfile("config.py", silent=True)
app.config.from_pyfile("testing.py", silent=True)
app.jinja_env.add_extension("jinja2.ext.do")
app.jinja_env.add_extension("jinja2.ext.loopcontrols")

Loading…
Cancel
Save