Skip to content

Commit a68a611

Browse files
committed
add test settings
1 parent eadd97a commit a68a611

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ tests-deps: install-pip
2020

2121
tests-run:
2222
PYTHONPATH=$$PWD:$$PYTHONPATH DJANGO_SETTINGS_MODULE=tests.settings django-admin test
23+
2324
clean:
2425
rm -fr build dist
2526
find . -name "*~" -exec rm {} -v \;

tests/settings.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import os
2+
from pathlib import Path
3+
4+
BASE_DIR = Path(__file__).resolve().parent
5+
6+
DATABASES = {
7+
"default": {
8+
"ENGINE": "django.db.backends.sqlite3",
9+
"NAME": ":memory:",
10+
},
11+
}
12+
13+
INSTALLED_APPS = (
14+
"django.contrib.contenttypes",
15+
"dynamic_breadcrumbs",
16+
)
17+
18+
ALLOWED_HOSTS = ["www.example.com"]
19+
20+
MIDDLEWARE = []
21+
22+
SECRET_KEY = "foobar"
23+
24+
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
25+

0 commit comments

Comments
 (0)