Skip to content

Commit

Permalink
test_site_name overrides KOBOCAT_PUBLIC_HOSTNAME in case it was changed
Browse files Browse the repository at this point in the history
from it's default setting
  • Loading branch information
bufke committed Jan 23, 2024
1 parent 1689d5a commit 6872605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onadata/apps/main/tests/test_custom_context_processors.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# coding: utf-8
from django.test import TestCase
from django.test import override_settings, TestCase
from onadata.apps.main.context_processors import site_name


class CustomContextProcessorsTest(TestCase):
@override_settings(KOBOCAT_PUBLIC_HOSTNAME="kc.kobotoolbox.org")
def test_site_name(self):
context = site_name(None)
self.assertEqual(context, {'SITE_NAME': 'kc.kobotoolbox.org'})

0 comments on commit 6872605

Please sign in to comment.