diff --git a/cms/static/cms/js/require-config.js b/cms/static/cms/js/require-config.js index 4c5f26a84a..14afba77f3 100644 --- a/cms/static/cms/js/require-config.js +++ b/cms/static/cms/js/require-config.js @@ -84,7 +84,6 @@ waitSeconds: 60, paths: { 'domReady': 'js/vendor/domReady', - 'mustache': 'js/vendor/mustache', 'codemirror': 'js/vendor/codemirror-compressed', 'codemirror/stex': 'js/vendor/CodeMirror/stex', 'jquery': 'common/js/vendor/jquery', diff --git a/cms/static/cms/js/spec/main.js b/cms/static/cms/js/spec/main.js index 0085de004e..a5b33c142d 100644 --- a/cms/static/cms/js/spec/main.js +++ b/cms/static/cms/js/spec/main.js @@ -26,7 +26,6 @@ baseUrl: '/base/', paths: { 'gettext': 'xmodule_js/common_static/js/test/i18n', - 'mustache': 'xmodule_js/common_static/js/vendor/mustache', 'codemirror': 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror', 'jquery': 'xmodule_js/common_static/common/js/vendor/jquery', 'jquery-migrate': 'xmodule_js/common_static/common/js/vendor/jquery-migrate', diff --git a/cms/static/cms/js/spec/main_squire.js b/cms/static/cms/js/spec/main_squire.js index 22effd15ca..d088a8c54a 100644 --- a/cms/static/cms/js/spec/main_squire.js +++ b/cms/static/cms/js/spec/main_squire.js @@ -10,7 +10,6 @@ baseUrl: '/base/', paths: { 'gettext': 'xmodule_js/common_static/js/test/i18n', - 'mustache': 'xmodule_js/common_static/js/vendor/mustache', 'codemirror': 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror', 'jquery': 'common/js/vendor/jquery', 'jquery-migrate': 'common/js/vendor/jquery-migrate', diff --git a/common/static/karma_common.conf.js b/common/static/karma_common.conf.js index 10ef28421b..427dbc1a6e 100644 --- a/common/static/karma_common.conf.js +++ b/common/static/karma_common.conf.js @@ -24,7 +24,6 @@ var options = { {pattern: 'js/vendor/jquery.leanModal.js', included: true}, {pattern: 'js/vendor/jquery.timeago.js', included: true}, {pattern: 'js/vendor/jquery.truncate.js', included: true}, - {pattern: 'js/vendor/mustache.js', included: true}, {pattern: 'js/vendor/URI.min.js', included: true}, {pattern: 'js/test/add_ajax_prefix.js', included: true}, {pattern: 'js/test/i18n.js', included: true}, diff --git a/lms/djangoapps/django_comment_client/tests/test_utils.py b/lms/djangoapps/django_comment_client/tests/test_utils.py index 76ddf1b7d2..1f19c613c2 100644 --- a/lms/djangoapps/django_comment_client/tests/test_utils.py +++ b/lms/djangoapps/django_comment_client/tests/test_utils.py @@ -1234,21 +1234,6 @@ class JsonResponseTestCase(TestCase, UnicodeTestMixin): self.assertEqual(reparsed, text) -@attr(shard=1) -class RenderMustacheTests(TestCase): - """ - Test the `render_mustache` utility function. - """ - - @mock.patch('edxmako.LOOKUP', {}) - def test_it(self): - """ - Basic test. - """ - add_lookup('main', '', package=__name__) - self.assertEqual(utils.render_mustache('test.mustache', {}), 'Testing 1 2 3.\n') - - class DiscussionTabTestCase(ModuleStoreTestCase): """ Test visibility of the discussion tab. """ diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index a439ac8fc2..80d67c27a2 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -653,13 +653,6 @@ def get_metadata_for_threads(course_id, threads, user, user_info): metadata = reduce(merge_dict, map(infogetter, threads), {}) return metadata -# put this method in utils.py to avoid circular import dependency between helpers and mustache_helpers - - -def render_mustache(template_name, dictionary, *args, **kwargs): - template = lookup_template('main', template_name).source - return pystache.render(template, dictionary) - def permalink(content): if isinstance(content['course_id'], CourseKey):