mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-02 02:40:35 +00:00
Add basic and user model testing.
This commit is contained in:
@ -18,7 +18,11 @@ class DevelopmentConfig(Config):
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data_dev.sqlite')
|
||||
|
||||
|
||||
# class TestingConfig(Config):
|
||||
class TestingConfig(Config):
|
||||
TESTING = True
|
||||
SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
|
||||
'sqlite://'
|
||||
WTF_CSRF_ENABLED = False
|
||||
|
||||
|
||||
# class ProductionConfig(Config):
|
||||
@ -26,7 +30,7 @@ class DevelopmentConfig(Config):
|
||||
|
||||
config = {
|
||||
'development': DevelopmentConfig,
|
||||
# 'testing': TestingConfig,
|
||||
'testing': TestingConfig,
|
||||
# 'production': ProductionConfig,
|
||||
|
||||
'default': DevelopmentConfig
|
||||
|
Reference in New Issue
Block a user