Commit f93a8e15 authored by adietmue's avatar adietmue
Browse files

Backend: Get Mongo host from envvar for automated testing

parent 10ea2a4f
......@@ -4,12 +4,15 @@ Check out [the Eve docs for configuration](http://python-eve.org/config.html)
if you are unsure about some of the settings.
"""
from os import environ
# AMIVAPI URL and Admin Group
AMIVAPI_URL = "https://amiv-api.ethz.ch"
ADMIN_GROUP_NAME = 'PVK Admins'
# DB
MONGO_HOST = 'localhost'
MONGO_HOST = environ.get('MONGO_HOST', 'localhost')
MONGO_PORT = 27017
MONGO_USERNAME = 'pvkuser'
MONGO_PASSWORD = 'pvkpass'
......
......@@ -19,8 +19,6 @@ from app import create_app
TEST_SETTINGS = {
'MONGO_HOST': 'localhost',
'MONGO_PORT': 27017,
'MONGO_DBNAME': 'pvk_test',
'MONGO_USERNAME': 'pvk_user',
'MONGO_PASSWORD': 'pvk_pass',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment