|
12 | 12 | ) |
13 | 13 | from tests import track_file, system_cmd |
14 | 14 | from django.utils.translation import gettext_lazy as _ |
| 15 | +from tests.base_settings import * |
15 | 16 |
|
16 | 17 | track_file = str(track_file.relative_to(Path(os.getcwd()))) |
17 | 18 | system_cmd = ("python", str(system_cmd.relative_to(Path(os.getcwd())))) |
|
23 | 24 | # testing help output in CI environments. |
24 | 25 | os.environ["TERMINAL_WIDTH"] = "80" |
25 | 26 |
|
26 | | -# Build paths inside the project like this: BASE_DIR / 'subdir'. |
27 | | -BASE_DIR = Path(__file__).resolve().parent.parent |
28 | | - |
29 | | -# Application definition |
30 | | - |
31 | | -INSTALLED_APPS = [ |
32 | | - "render_static", |
33 | | - "tests.django_routines_tests", |
34 | | - "django_routines", |
35 | | - "django_typer", |
36 | | - "django.contrib.auth", |
37 | | - "django.contrib.contenttypes", |
38 | | - "django.contrib.sessions", |
39 | | - "django.contrib.messages", |
40 | | - "django.contrib.staticfiles", |
41 | | -] |
42 | | - |
43 | | - |
44 | | -DATABASES = { |
45 | | - "default": { |
46 | | - "ENGINE": "django.db.backends.sqlite3", |
47 | | - "NAME": BASE_DIR / "db.sqlite3", |
48 | | - "TEST": {"NAME": BASE_DIR / "db.sqlite3"}, |
49 | | - } |
50 | | -} |
51 | | - |
52 | | -MIDDLEWARE = [ |
53 | | - "django.middleware.security.SecurityMiddleware", |
54 | | - "django.contrib.sessions.middleware.SessionMiddleware", |
55 | | - "django.middleware.common.CommonMiddleware", |
56 | | - "django.middleware.csrf.CsrfViewMiddleware", |
57 | | - "django.contrib.auth.middleware.AuthenticationMiddleware", |
58 | | - "django.contrib.messages.middleware.MessageMiddleware", |
59 | | - "django.middleware.clickjacking.XFrameOptionsMiddleware", |
60 | | -] |
61 | | - |
62 | | -DJANGO_ROUTINES = None |
63 | | - |
64 | | -DEFAULT_AUTO_FIELD = "django.db.models.AutoField" |
65 | | - |
66 | | -STATIC_URL = "static/" |
67 | | - |
68 | | -SECRET_KEY = "fake" |
69 | | - |
70 | 27 | routine( |
71 | 28 | "deploy", |
72 | 29 | _("Deploy the site application into production."), |
|
0 commit comments