pillar/tests/common_test_settings.py
Francesco Siddi aa47c2b4a6 Allow overriding Eve settings from env in test
Environment variables for Eve settings are now used in unit tests.
2016-04-26 12:34:16 +02:00

14 lines
314 B
Python

from settings import *
from eve.tests.test_settings import MONGO_DBNAME
def override_eve():
from eve.tests import test_settings
from eve import tests
test_settings.MONGO_HOST = MONGO_HOST
test_settings.MONGO_PORT = MONGO_PORT
tests.MONGO_HOST = MONGO_HOST
tests.MONGO_PORT = MONGO_PORT