summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-20 23:21:42 -0700
committerAndrew Godwin2022-11-20 23:21:42 -0700
commit3131ace8a6700540a4a3af069471672ae03bc8a8 (patch)
treef9b7609deef3b74fb65fdaab164a9c29be478584
parentda936cd7df299d81b6c83d219ae54cf0075d88c7 (diff)
downloadtakahe-3131ace8a6700540a4a3af069471672ae03bc8a8.tar.gz
takahe-3131ace8a6700540a4a3af069471672ae03bc8a8.tar.bz2
takahe-3131ace8a6700540a4a3af069471672ae03bc8a8.zip
Add domain to tests, make local use right settings
-rw-r--r--setup.cfg3
-rw-r--r--takahe/settings/testing.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/setup.cfg b/setup.cfg
index e615e49..862d7c3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,8 +8,7 @@ profile = black
multi_line_output = 3
[tool:pytest]
-addopts = --tb=short
-DJANGO_SETTINGS_MODULE = takahe.settings.testing
+addopts = --tb=short --ds=takahe.settings.testing
filterwarnings =
ignore:There is no current event loop
diff --git a/takahe/settings/testing.py b/takahe/settings/testing.py
index 7dffa2a..c0af28b 100644
--- a/takahe/settings/testing.py
+++ b/takahe/settings/testing.py
@@ -4,3 +4,5 @@ from .base import * # noqa
SECRET_KEY = "testing_secret"
IN_TESTS = True
+
+MAIN_DOMAIN = "example.com"