Make sure not staff is set for tests

This commit is contained in:
Yohan Boniface 2019-04-22 23:13:41 +02:00
parent 53a9f6b560
commit 437a3e0c36

View file

@ -14,6 +14,7 @@ from copanier.models import Delivery, Person, Product
def pytest_configure(config):
os.environ["COPANIER_DATA_ROOT"] = "tmp/db"
os.environ["COPANIER_SEND_EMAILS"] = ""
os.environ["COPANIER_STAFF"] = ""
kconfig.init()
assert str(kconfig.DATA_ROOT) == "tmp/db"