From 00f7e5a4325826f264b909a0fe72789bad33c6b3 Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Fri, 17 Aug 2018 16:21:44 +0200 Subject: [PATCH] =?UTF-8?q?Why=20we=20can't=20use=20override=5Fsettings?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rosetta/tests/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rosetta/tests/tests.py b/rosetta/tests/tests.py index c58040e..c1f0397 100644 --- a/rosetta/tests/tests.py +++ b/rosetta/tests/tests.py @@ -69,6 +69,10 @@ class RosettaTestCase(TestCase): ('zh_Hans', u'Chinese (simplified)'), ) + # This stinks. We'd rather use `override_settings`, but because of + # this bug, it can't be done: https://code.djangoproject.com/ticket/25911 + # We're relying on settings.SETTINGS_MODULE to be there + # to get the projetct's base dir self.__session_engine = settings.SESSION_ENGINE self.__storage_class = rosetta_settings.STORAGE_CLASS self.__require_auth = rosetta_settings.ROSETTA_REQUIRES_AUTH