Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8934f54d
Commit
8934f54d
authored
Dec 03, 2012
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save the HTML to a file for each section and comment out debug msgs
parent
5cad5d5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lms/djangoapps/courseware/features/smart-accordion.py
+8
-4
No files found.
lms/djangoapps/courseware/features/smart-accordion.py
View file @
8934f54d
...
...
@@ -53,7 +53,7 @@ def browse_course(course_id):
num_rendered_chapters
=
len
(
rendered_chapters
)
msg
=
'
%
d chapters expected,
%
d chapters found on page for
%
s'
%
(
num_chapters
,
num_rendered_chapters
,
course_id
)
logger
.
debug
(
msg
)
#
logger.debug(msg)
assert
num_chapters
==
num_rendered_chapters
,
msg
chapter_it
=
0
...
...
@@ -76,7 +76,7 @@ def browse_course(course_id):
msg
=
(
'
%
d sections expected,
%
d sections found on page,
%
s -
%
d -
%
s'
%
(
num_sections
,
num_rendered_sections
,
course_id
,
chapter_it
,
chapters
[
chapter_it
][
'chapter_name'
]))
logger
.
debug
(
msg
)
#
logger.debug(msg)
assert
num_sections
==
num_rendered_sections
,
msg
section_it
=
0
...
...
@@ -107,7 +107,11 @@ def browse_course(course_id):
msg
=
(
'
%
d tabs expected,
%
d tabs found,
%
s -
%
d -
%
s'
%
(
num_tabs
,
num_rendered_tabs
,
course_id
,
section_it
,
sections
[
section_it
][
'section_name'
]))
logger
.
debug
(
msg
)
#logger.debug(msg)
# Save the HTML to a file for later comparison
world
.
save_the_html
()
assert
num_tabs
==
num_rendered_tabs
,
msg
tabs
=
sections
[
section_it
][
'tabs'
]
...
...
@@ -128,7 +132,7 @@ def browse_course(course_id):
num_rendered_items
=
len
(
rendered_items
)
msg
=
(
'
%
d items expected,
%
d items found,
%
s -
%
d -
%
s - tab
%
d'
%
(
tab_children
,
num_rendered_items
,
course_id
,
section_it
,
sections
[
section_it
][
'section_name'
],
tab_it
))
logger
.
debug
(
msg
)
#
logger.debug(msg)
assert
tab_children
==
num_rendered_items
,
msg
tab_it
+=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment