diff --git a/common/djangoapps/edxmako/makoloader.py b/common/djangoapps/edxmako/makoloader.py index 95ca8f3e51..70c5401bed 100644 --- a/common/djangoapps/edxmako/makoloader.py +++ b/common/djangoapps/edxmako/makoloader.py @@ -1,4 +1,4 @@ - # lint-amnesty, pylint: disable=missing-module-docstring +# lint-amnesty, pylint: disable=missing-module-docstring import logging diff --git a/common/djangoapps/edxmako/tests.py b/common/djangoapps/edxmako/tests.py index ba6e7ac020..b1dce07bc9 100644 --- a/common/djangoapps/edxmako/tests.py +++ b/common/djangoapps/edxmako/tests.py @@ -1,4 +1,4 @@ - # lint-amnesty, pylint: disable=cyclic-import, missing-module-docstring +# lint-amnesty, pylint: disable=cyclic-import, missing-module-docstring import unittest @@ -29,6 +29,7 @@ class ShortcutsTests(UrlResetMixin, TestCase): """ Test the edxmako shortcuts file """ + @override_settings(MKTG_URLS={'ROOT': 'https://dummy-root', 'ABOUT': '/about-us'}) def test_marketing_link(self): with override_settings(MKTG_URL_LINK_MAP={'ABOUT': self._get_test_url_name()}): @@ -123,6 +124,7 @@ class AddLookupTests(TestCase): """ Test the `add_lookup` function. """ + @patch('common.djangoapps.edxmako.LOOKUP', {}) def test_with_package(self): add_lookup('test', 'management', __name__)