Fix handling of secret key: We now generate it on app startup if it doesn't exist in the config (which it doesn't anymore in the base config.py).

This commit is contained in:
Joseph Schorr 2015-01-05 12:31:02 -05:00
parent 1bf25f25c1
commit 40d2b1748f
6 changed files with 11 additions and 5 deletions

View file

@ -15,6 +15,7 @@ class FakeTransaction(object):
class TestConfig(DefaultConfig):
TESTING = True
SECRET_KEY = 'a36c9d7d-25a9-4d3f-a586-3d2f8dc40a83'
DB_URI = os.environ.get('TEST_DATABASE_URI', 'sqlite:///:memory:')
DB_CONNECTION_ARGS = {