Make Studio load XBlock fragment js and css on the client-side

[LMS-1421][LMS-1517]
This commit is contained in:
Calen Pennington
2013-12-13 07:50:33 -05:00
parent 49217ebe8b
commit f6731342de
12 changed files with 197 additions and 67 deletions

View File

@@ -57,6 +57,13 @@ class AjaxEnabledTestClient(Client):
"""
return self.get(path, data or {}, follow, HTTP_ACCEPT="application/json", **extra)
def get_fragment(self, path, data=None, follow=False, **extra):
"""
Convenience method for client.get which sets the accept type to application/x-fragment+json
"""
return self.get(path, data or {}, follow, HTTP_ACCEPT="application/x-fragment+json", **extra)
@override_settings(MODULESTORE=TEST_MODULESTORE)
class CourseTestCase(ModuleStoreTestCase):