Skip to content

Commit

Permalink
Issue #712. Set app.config.TESTING to true when we start the server i…
Browse files Browse the repository at this point in the history
…n test mode.
  • Loading branch information
Mike Taylor committed Oct 22, 2015
1 parent d1a34e8 commit f8c497c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def config_validator():
# disable HttpOnly setting for session cookies so Selenium
# can interact with them. *ONLY* do this for testing.
app.config['SESSION_COOKIE_HTTPONLY'] = False
app.config['TESTING'] = True
print("Starting server in ~*TEST MODE*~")
app.run(host='localhost')
else:
Expand Down

0 comments on commit f8c497c

Please sign in to comment.