From f36fa2bb7ddc7b4c38459204caac3f443e133767 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 12 May 2021 11:47:03 +0200 Subject: [PATCH] add var in config --- ereuse_devicehub/config.py | 3 +++ tests/conftest.py | 1 + 2 files changed, 4 insertions(+) diff --git a/ereuse_devicehub/config.py b/ereuse_devicehub/config.py index beef8b25..02d97da3 100644 --- a/ereuse_devicehub/config.py +++ b/ereuse_devicehub/config.py @@ -68,3 +68,6 @@ class DevicehubConfig(Config): """Admin email""" EMAIL_ADMIN = config('EMAIL_ADMIN', '') + + """Definition of path where save the documents of customers""" + PATH_DOCUMENTS_STORAGE = config('PATH_DOCUMENTS_STORAGE', '/tmp/') diff --git a/tests/conftest.py b/tests/conftest.py index d0a0bdd2..94abed59 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -33,6 +33,7 @@ class TestConfig(DevicehubConfig): TMP_SNAPSHOTS = '/tmp/snapshots' TMP_LIVES = '/tmp/lives' EMAIL_ADMIN = 'foo@foo.com' + PATH_DOCUMENTS_STORAGE = '/tmp/trade_documents' @pytest.fixture(scope='session')