Commit 70e7ed69 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

common: Test settings improvements

- Avoid settings overrides from conf files inside SYNNEFO_SETTINGS_DIR
  Tests are expected to succeed with exact setting values defined either
  in tests modules/cases or in the default synnefo setting modules. To
  ensure this we temporarily set SYNNEFO_SETTINGS_DIR environmental variable
  to a non existing directory.
- Use DEBUG=False by default. We want our code to be tested in an
  settings environment as close to what we would set in a production
- Set initial astakos IM_MODULES setting to be able to test third party
  providers. This will be removed once we manage to dynamically run
  different tests with different IM_MODULES combinations
parent c5172eb4
import os
os.environ['SYNNEFO_SETTINGS_DIR'] = '/etc/synnefo-test-settings'
from synnefo.settings import * from synnefo.settings import *
DEBUG = True DEBUG = False
TEST = True TEST = True
...@@ -12,3 +15,7 @@ DATABASES = { ...@@ -12,3 +15,7 @@ DATABASES = {
LOGGING_SETUP['handlers']['console']['level'] = 'WARNING' LOGGING_SETUP['handlers']['console']['level'] = 'WARNING'
LOGIN_URL = 'http://host:port/' LOGIN_URL = 'http://host:port/'
SOUTH_TESTS_MIGRATE = bool(os.environ.get('SOUTH_TESTS_MIGRATE', True))
ASTAKOS_IM_MODULES = ['local', 'shibboleth']
Markdown is supported
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