From 15a5e6c1aca706330147475984848dfc33fd1a9d Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Fri, 17 May 2013 13:18:10 -0400 Subject: [PATCH] Fix test so that it works with both CMS and LMS settings --- common/djangoapps/mitxmako/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/mitxmako/tests.py b/common/djangoapps/mitxmako/tests.py index a1a4fa4582..21866eb9b5 100644 --- a/common/djangoapps/mitxmako/tests.py +++ b/common/djangoapps/mitxmako/tests.py @@ -12,7 +12,7 @@ class ShortcutsTests(TestCase): """ @override_settings(MKTG_URLS={'ROOT': 'dummy-root', 'ABOUT': '/about-us'}) - @override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'about_edx'}) + @override_settings(MKTG_URL_LINK_MAP={'ABOUT': 'login'}) def test_marketing_link(self): # test marketing site on with patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': True}): @@ -21,6 +21,7 @@ class ShortcutsTests(TestCase): self.assertEquals(link, expected_link) # test marketing site off with patch.dict('django.conf.settings.MITX_FEATURES', {'ENABLE_MKTG_SITE': False}): - expected_link = reverse('about_edx') + # we are using login because it is common across both cms and lms + expected_link = reverse('login') link = marketing_link('ABOUT') self.assertEquals(link, expected_link)