Browse Source

Include coverage, selenium and add a "testing" config file"

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

3
requirements.testing.txt

@ -1,2 +1,5 @@
-r requirements.txt
nose
coverage
nose-cov
selenium

3
vowel/web.py

@ -63,6 +63,7 @@ def create_app():
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")
@ -108,7 +109,7 @@ def create_app():
from raven.contrib.flask import Sentry
Sentry(app, logging=True, level=logging.WARNING)
if app.config["DEBUG"]:
if app.config["DEBUG"] and not app.config["TESTING"]:
from flask_debugtoolbar import DebugToolbarExtension
DebugToolbarExtension(app)

Loading…
Cancel
Save