make sure .env.example can be used in tests/

This commit is contained in:
Son NK 2019-07-12 10:34:33 +02:00 committed by Son NK
parent 0817e45abe
commit c4775bd66c
2 changed files with 5 additions and 3 deletions

View File

@ -12,10 +12,10 @@ STRIPE_SECRET_KEY=to_fill
MAX_NB_EMAIL_FREE_PLAN=3
# Absolute paths
OPENID_PRIVATE_KEY_PATH=to_fill
OPENID_PUBLIC_KEY_PATH=to_fill
OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key
OPENID_PUBLIC_KEY_PATH=local_data/jwtRS256.key.pub
WORDS_FILE_PATH=to_fill
WORDS_FILE_PATH=local_data/words.txt
# Github: make sure to set correctly the redirect url to /auth/github/callback
GITHUB_CLIENT_ID=to_fill

View File

@ -1,5 +1,7 @@
import os
os.environ["CONFIG"] = ".env.example"
# use in-memory database
# need to set before importing any other module as DB_URI is init at import time
os.environ["DB_URI"] = "sqlite://"