Merge pull request #15524 from edx/christina/remove-mustache
Remove unneeded mustache references.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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. """
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user