Commit c0bfdf5e by Chris Rodriguez

Removing instances of old mechanism; tests

parent c9b775bd
...@@ -156,7 +156,7 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase): ...@@ -156,7 +156,7 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase):
], ],
'url_name': u'Entrance_Exam_Section_-_Chapter_1', 'url_name': u'Entrance_Exam_Section_-_Chapter_1',
'display_name': u'Entrance Exam Section - Chapter 1', 'display_name': u'Entrance Exam Section - Chapter 1',
'display_id': u'Entrance-Exam-Section---Chapter-1', 'display_id': u'entrance-exam-section-chapter-1',
} }
] ]
) )
...@@ -184,21 +184,21 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase): ...@@ -184,21 +184,21 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase):
], ],
'url_name': u'Overview', 'url_name': u'Overview',
'display_name': u'Overview', 'display_name': u'Overview',
'display_id': u'Overview' 'display_id': u'overview'
}, },
{ {
'active': False, 'active': False,
'sections': [], 'sections': [],
'url_name': u'Week_1', 'url_name': u'Week_1',
'display_name': u'Week 1', 'display_name': u'Week 1',
'display_id': u'Week-1' 'display_id': u'week-1'
}, },
{ {
'active': False, 'active': False,
'sections': [], 'sections': [],
'url_name': u'Instructor', 'url_name': u'Instructor',
'display_name': u'Instructor', 'display_name': u'Instructor',
'display_id': u'Instructor' 'display_id': u'instructor'
}, },
{ {
'active': True, 'active': True,
...@@ -214,7 +214,7 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase): ...@@ -214,7 +214,7 @@ class EntranceExamTestCases(LoginEnrollmentTestCase, ModuleStoreTestCase):
], ],
'url_name': u'Entrance_Exam_Section_-_Chapter_1', 'url_name': u'Entrance_Exam_Section_-_Chapter_1',
'display_name': u'Entrance Exam Section - Chapter 1', 'display_name': u'Entrance Exam Section - Chapter 1',
'display_id': u'Entrance-Exam-Section---Chapter-1' 'display_id': u'entrance-exam-section-chapter-1'
} }
] ]
) )
......
...@@ -634,9 +634,6 @@ class TestTOC(ModuleStoreTestCase): ...@@ -634,9 +634,6 @@ class TestTOC(ModuleStoreTestCase):
with self.store.default_store(default_ms): with self.store.default_store(default_ms):
self.setup_modulestore(default_ms, setup_finds, setup_sends) self.setup_modulestore(default_ms, setup_finds, setup_sends)
from nose.tools import set_trace;
set_trace();
expected = ([{'active': True, 'sections': expected = ([{'active': True, 'sections':
[{'url_name': 'Toy_Videos', 'display_name': u'Toy Videos', 'graded': True, [{'url_name': 'Toy_Videos', 'display_name': u'Toy Videos', 'graded': True,
'format': u'Lecture Sequence', 'due': None, 'active': False}, 'format': u'Lecture Sequence', 'due': None, 'active': False},
...@@ -646,7 +643,7 @@ class TestTOC(ModuleStoreTestCase): ...@@ -646,7 +643,7 @@ class TestTOC(ModuleStoreTestCase):
'format': '', 'due': None, 'active': False}, 'format': '', 'due': None, 'active': False},
{'url_name': 'video_4f66f493ac8f', 'display_name': 'Video', 'graded': True, {'url_name': 'video_4f66f493ac8f', 'display_name': 'Video', 'graded': True,
'format': '', 'due': None, 'active': False}], 'format': '', 'due': None, 'active': False}],
'url_name': 'Overview', 'display_name': u'Overview', 'display_id': u'Overview'}, 'url_name': 'Overview', 'display_name': u'Overview', 'display_id': u'overview'},
{'active': False, 'sections': {'active': False, 'sections':
[{'url_name': 'toyvideo', 'display_name': 'toyvideo', 'graded': True, [{'url_name': 'toyvideo', 'display_name': 'toyvideo', 'graded': True,
'format': '', 'due': None, 'active': False}], 'format': '', 'due': None, 'active': False}],
...@@ -686,7 +683,7 @@ class TestTOC(ModuleStoreTestCase): ...@@ -686,7 +683,7 @@ class TestTOC(ModuleStoreTestCase):
'format': '', 'due': None, 'active': False}, 'format': '', 'due': None, 'active': False},
{'url_name': 'video_4f66f493ac8f', 'display_name': 'Video', 'graded': True, {'url_name': 'video_4f66f493ac8f', 'display_name': 'Video', 'graded': True,
'format': '', 'due': None, 'active': False}], 'format': '', 'due': None, 'active': False}],
'url_name': 'Overview', 'display_name': u'Overview', 'display_id': u'Overview'}, 'url_name': 'Overview', 'display_name': u'Overview', 'display_id': u'overview'},
{'active': False, 'sections': {'active': False, 'sections':
[{'url_name': 'toyvideo', 'display_name': 'toyvideo', 'graded': True, [{'url_name': 'toyvideo', 'display_name': 'toyvideo', 'graded': True,
'format': '', 'due': None, 'active': False}], 'format': '', 'due': None, 'active': False}],
......
<div class="course-wrapper"> <div class="course-wrapper">
<header id="open_close_accordion">
<a href="#">close</a>
</header>
<div id="accordion"> <div id="accordion">
<button class="button-chapter chapter" aria-controls="accordion-menu-1" aria-pressed="true"> <button class="button-chapter chapter" aria-controls="accordion-menu-1" aria-pressed="true">
<h3 class="group-heading"> <h3 class="group-heading">
......
...@@ -71,9 +71,6 @@ $("#open_close_accordion a").click(function(){ ...@@ -71,9 +71,6 @@ $("#open_close_accordion a").click(function(){
<div class="book-wrapper"> <div class="book-wrapper">
<section aria-label="${_('Textbook Navigation')}" class="book-sidebar"> <section aria-label="${_('Textbook Navigation')}" class="book-sidebar">
<header id="open_close_accordion">
<a href="#">close</a>
</header>
<ul id="booknav" class="treeview-booknav"> <ul id="booknav" class="treeview-booknav">
<%def name="print_entry(entry)"> <%def name="print_entry(entry)">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment