From 7dbb469a4fbfbe67846752c8a53d3d458821d628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 8 Feb 2019 15:09:17 +0100 Subject: [PATCH] tests: don't make theme_base go through dedicated hobo code path --- tests/test_context_processors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_context_processors.py b/tests/test_context_processors.py index b31051c..de6dd42 100644 --- a/tests/test_context_processors.py +++ b/tests/test_context_processors.py @@ -6,6 +6,7 @@ from hobo.context_processors import theme_base import django from django.core.cache import cache +from django.test import override_settings def test_theme_base(settings, rf): @@ -40,7 +41,7 @@ def test_theme_base(settings, rf): else: assert context['theme_base']().origin.source == value - with HTTMock(combo_mock): + with HTTMock(combo_mock), override_settings(INSTALLED_APPS=[]): context = theme_base(rf.get('/')) check(context, TEMPLATE) assert seen_urls[0] == 'http://combo.example.com/_skeleton_/?source=http%3A%2F%2Ftestserver%2F'