Have registry tests use a copy of the database

This makes the test suite much faster
This commit is contained in:
Joseph Schorr 2015-09-08 12:35:03 -04:00
parent 610e946b53
commit 8b4d99adcf
2 changed files with 46 additions and 8 deletions

View file

@ -21,6 +21,7 @@ class TestConfig(DefaultConfig):
TESTING = True
SECRET_KEY = 'a36c9d7d-25a9-4d3f-a586-3d2f8dc40a83'
TEST_DB_FILE = TEST_DB_FILE
DB_URI = os.environ.get('TEST_DATABASE_URI', 'sqlite:///{0}'.format(TEST_DB_FILE.name))
DB_CONNECTION_ARGS = {
'threadlocals': True,