tests: don't make theme_base go through dedicated hobo code path

This commit is contained in:
Frédéric Péters 2019-02-08 15:09:17 +01:00
parent a56d928d9b
commit 7dbb469a4f
1 changed files with 2 additions and 1 deletions

View File

@ -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'