use tests/env.test as env file for tests

This commit is contained in:
Son NK 2019-08-10 17:04:04 +02:00
parent ba15837b01
commit 51311e9c41
2 changed files with 61 additions and 1 deletions

View file

@ -1,7 +1,7 @@
import os
os.environ["CONFIG"] = os.path.abspath(
os.path.join(os.path.dirname(os.path.dirname(__file__)), ".env.example")
os.path.join(os.path.dirname(os.path.dirname(__file__)), "tests/env.test")
)

60
tests/env.test Normal file
View file

@ -0,0 +1,60 @@
# Server url
URL=http://localhost
# Enable sentry
# ENABLE_SENTRY=true
# Email related settings
# Only print email content, not sending it
NOT_SEND_EMAIL=true
EMAIL_DOMAIN=sl.local
SUPPORT_EMAIL=support@sl.local
SENDGRID_API_KEY=to_fill
# Max number emails user can generate for free plan
MAX_NB_EMAIL_FREE_PLAN=3
# Database
RESET_DB=true
DB_URI=sqlite:///db.sqlite
# Flask
FLASK_SECRET=secret
# AWS
BUCKET=to_fill
AWS_ACCESS_KEY_ID=to_fill
AWS_SECRET_ACCESS_KEY=to_fill
# Cloudwatch
# ENABLE_CLOUDWATCH=true
CLOUDWATCH_LOG_GROUP=local
CLOUDWATCH_LOG_STREAM=local
# Stripe
STRIPE_YEARLY_PLAN=to_fill
STRIPE_MONTHLY_PLAN=to_fill
STRIPE_API=to_fill
STRIPE_SECRET_KEY=to_fill
# Lyra analytics
LYRA_ANALYTICS_ID=to_fill
# OpenId key
OPENID_PRIVATE_KEY_PATH=local_data/jwtRS256.key
OPENID_PUBLIC_KEY_PATH=local_data/jwtRS256.key.pub
# Words to generate random email alias
WORDS_FILE_PATH=local_data/words.txt
# Github
GITHUB_CLIENT_ID=to_fill
GITHUB_CLIENT_SECRET=to_fill
# Google
GOOGLE_CLIENT_ID=to_fill
GOOGLE_CLIENT_SECRET=to_fill
# Facebook
FACEBOOK_CLIENT_ID=to_fill
FACEBOOK_CLIENT_SECRET=to_fill