From 3131ace8a6700540a4a3af069471672ae03bc8a8 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Nov 2022 23:21:42 -0700 Subject: Add domain to tests, make local use right settings --- setup.cfg | 3 +-- takahe/settings/testing.py | 2 ++ 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" -- cgit v1.2.3