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
cde20758
Commit
cde20758
authored
Dec 04, 2012
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic cleanup
parent
dfb99131
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
common/djangoapps/mitxmako/template.py
+0
-3
lms/djangoapps/courseware/tests/tests.py
+3
-3
No files found.
common/djangoapps/mitxmako/template.py
View file @
cde20758
...
...
@@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
logging
log
=
logging
.
getLogger
(
"mitx."
+
__name__
)
from
django.conf
import
settings
from
mako.template
import
Template
as
MakoTemplate
...
...
lms/djangoapps/courseware/tests/tests.py
View file @
cde20758
...
...
@@ -290,11 +290,11 @@ class PageLoader(ActivateLoginTestCase):
for
descriptor
in
module_store
.
modules
[
course_id
]
.
itervalues
():
n
+=
1
print
"Checking "
,
descriptor
.
location
.
url
()
log
.
info
(
'Checking the content returned for page
%
s'
,
descriptor
.
location
.
url
())
#print descriptor.__class__, descriptor.location
resp
=
self
.
client
.
get
(
reverse
(
'jump_to'
,
kwargs
=
{
'course_id'
:
course_id
,
'location'
:
descriptor
.
location
.
url
()}),
follow
=
True
)
# check status codes first
msg
=
str
(
resp
.
status_code
)
if
resp
.
status_code
!=
200
:
msg
=
"ERROR "
+
msg
+
": "
+
descriptor
.
location
.
url
()
...
...
@@ -304,6 +304,8 @@ class PageLoader(ActivateLoginTestCase):
msg
=
"ERROR on redirect from "
+
descriptor
.
location
.
url
()
all_ok
=
False
num_bad
+=
1
# check content to make sure there were no rendering failures
content
=
resp
.
content
if
content
.
find
(
"this module is temporarily unavailable"
)
>=
0
:
msg
=
"ERROR unavailable module "
...
...
@@ -314,8 +316,6 @@ class PageLoader(ActivateLoginTestCase):
msg
=
msg
+
descriptor
.
definition
[
'data'
][
'error_msg'
]
all_ok
=
False
num_bad
+=
1
log
.
info
(
'Output the content returned for page
%
s'
,
descriptor
.
location
.
url
())
log
.
info
(
'Content returned:
%
s'
,
content
)
print
msg
self
.
assertTrue
(
all_ok
)
# fail fast
...
...
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