59 lines
1.8 KiB
Python
59 lines
1.8 KiB
Python
# Copyright (C) 2015 Yahoo! Inc. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
import os
|
|
|
|
from horizon.test.settings import * # noqa
|
|
from horizon.utils import secret_key as secret_key_utils
|
|
from openstack_dashboard.test.settings import * # noqa
|
|
|
|
DEBUG = True
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
ROOT_PATH = os.path.abspath(os.path.join(TEST_DIR, ".."))
|
|
|
|
MEDIA_ROOT = os.path.abspath(os.path.join(ROOT_PATH, '..', 'media'))
|
|
MEDIA_URL = '/media/'
|
|
STATIC_ROOT = os.path.abspath(os.path.join(ROOT_PATH, '..', 'static'))
|
|
STATIC_URL = '/static/'
|
|
|
|
SECRET_KEY = secret_key_utils.generate_or_read_from_file(
|
|
os.path.join(TEST_DIR, '.secret_key_store'))
|
|
ROOT_URLCONF = 'apmec_horizon.test.urls'
|
|
TEMPLATE_DIRS = (
|
|
os.path.join(TEST_DIR, 'templates'),
|
|
)
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.auth',
|
|
'django.contrib.sessions',
|
|
'django.contrib.staticfiles',
|
|
'django.contrib.messages',
|
|
'django.contrib.humanize',
|
|
'django_nose',
|
|
'openstack_auth',
|
|
'compressor',
|
|
'horizon',
|
|
'openstack_dashboard',
|
|
'apmec_horizon',
|
|
)
|
|
|
|
NOSE_ARGS = ['--nocapture',
|
|
'--nologcapture',
|
|
'--cover-package=apmec_horizon',
|
|
'--cover-inclusive',
|
|
'--all-modules']
|