Repository navigation
Expand file tree
/
Copy pathsettings.py
More file actions
76 lines (61 loc) · 2.11 KB
/
Copy pathsettings.py
File metadata and controls
76 lines (61 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""Django settings for running the Codespeed test suite.
Site independent: no site package is involved, so the suite exercises the
``codespeed`` app on its own. Site packages such as ``speed_python`` run their
tests under these settings too and override what they need per test case.
Usage::
python manage.py test codespeed speed_python --settings=codespeed.tests.settings
"""
import os
from codespeed.settings import * # noqa: F401,F403
TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
SECRET_KEY = 'test-secret-key-not-for-production'
USE_TZ = True
TIME_ZONE = 'UTC'
USE_I18N = False
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.staticfiles',
'codespeed',
)
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
ROOT_URLCONF = 'codespeed.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
# Site-style template overrides the tests check for
'DIRS': [os.path.join(TESTS_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
STATIC_URL = '/static/'
# Codespeed clones repositories here when commit logs are requested.
REPOSITORY_BASE_PATH = '/tmp/codespeed-test-repos'
CACHES = {
'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'},
}