include webpack commons bundle on all pages; stub webpack_loader in python unittests

include webpack commons bundle on all pages

quotes

homegrown webpack_loader mock

toggle installed webpack_loader in test env file instead

fix test checking context
This commit is contained in:
Ari Rizzitano
2017-07-19 11:38:01 -04:00
parent 53d9f87df3
commit 3d4b2a7382
12 changed files with 40 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ class TextbookIndexTestCase(CourseTestCase):
self.assertEqual(resp.status_code, 200)
# we don't have resp.context right now,
# due to bugs in our testing harness :(
if resp.context:
if resp.context and resp.context.get('course'):
self.assertEqual(resp.context['course'], self.course)
def test_view_index_xhr(self):