add var in config

This commit is contained in:
Cayo Puigdefabregas 2021-05-12 11:47:03 +02:00
parent 3157c34ab8
commit f36fa2bb7d
2 changed files with 4 additions and 0 deletions

View File

@ -68,3 +68,6 @@ class DevicehubConfig(Config):
"""Admin email""" """Admin email"""
EMAIL_ADMIN = config('EMAIL_ADMIN', '') EMAIL_ADMIN = config('EMAIL_ADMIN', '')
"""Definition of path where save the documents of customers"""
PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/')

View File

@ -33,6 +33,7 @@ class TestConfig(DevicehubConfig):
TMP_SNAPSHOTS = '/tmp/snapshots' TMP_SNAPSHOTS = '/tmp/snapshots'
TMP_LIVES = '/tmp/lives' TMP_LIVES = '/tmp/lives'
EMAIL_ADMIN = 'foo@foo.com' EMAIL_ADMIN = 'foo@foo.com'
PATH_DOCUMENTS_STORAGE = '/tmp/trade_documents'
@pytest.fixture(scope='session') @pytest.fixture(scope='session')