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
d044d5c4
Commit
d044d5c4
authored
Mar 29, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a few more pep8 fixes
parent
b63aae22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
lms/djangoapps/courseware/tests/tests.py
+11
-11
No files found.
lms/djangoapps/courseware/tests/tests.py
View file @
d044d5c4
...
@@ -430,8 +430,8 @@ class TestNavigation(LoginEnrollmentTestCase):
...
@@ -430,8 +430,8 @@ class TestNavigation(LoginEnrollmentTestCase):
kwargs
=
{
'course_id'
:
self
.
toy
.
id
}))
kwargs
=
{
'course_id'
:
self
.
toy
.
id
}))
self
.
assertRedirectsNoFollow
(
resp
,
reverse
(
'courseware_chapter'
,
self
.
assertRedirectsNoFollow
(
resp
,
reverse
(
'courseware_chapter'
,
kwargs
=
{
'course_id'
:
self
.
toy
.
id
,
kwargs
=
{
'course_id'
:
self
.
toy
.
id
,
'chapter'
:
'Overview'
}))
'chapter'
:
'Overview'
}))
# Now we directly navigate to a section in a different chapter
# Now we directly navigate to a section in a different chapter
self
.
check_for_get_code
(
200
,
reverse
(
'courseware_section'
,
self
.
check_for_get_code
(
200
,
reverse
(
'courseware_section'
,
...
@@ -863,14 +863,14 @@ class TestCourseGrader(LoginEnrollmentTestCase):
...
@@ -863,14 +863,14 @@ class TestCourseGrader(LoginEnrollmentTestCase):
problem_location
=
"i4x://edX/graded/problem/
%
s"
%
problem_url_name
problem_location
=
"i4x://edX/graded/problem/
%
s"
%
problem_url_name
modx_url
=
reverse
(
'modx_dispatch'
,
modx_url
=
reverse
(
'modx_dispatch'
,
kwargs
=
{
'course_id'
:
self
.
graded_course
.
id
,
kwargs
=
{
'course_id'
:
self
.
graded_course
.
id
,
'location'
:
problem_location
,
'location'
:
problem_location
,
'dispatch'
:
'problem_check'
,
})
'dispatch'
:
'problem_check'
,
})
resp
=
self
.
client
.
post
(
modx_url
,
{
resp
=
self
.
client
.
post
(
modx_url
,
{
'input_i4x-edX-graded-problem-
%
s_2_1'
%
problem_url_name
:
responses
[
0
],
'input_i4x-edX-graded-problem-
%
s_2_1'
%
problem_url_name
:
responses
[
0
],
'input_i4x-edX-graded-problem-
%
s_2_2'
%
problem_url_name
:
responses
[
1
],
'input_i4x-edX-graded-problem-
%
s_2_2'
%
problem_url_name
:
responses
[
1
],
})
})
print
"modx_url"
,
modx_url
,
"responses"
,
responses
print
"modx_url"
,
modx_url
,
"responses"
,
responses
print
"resp"
,
resp
print
"resp"
,
resp
...
@@ -885,9 +885,9 @@ class TestCourseGrader(LoginEnrollmentTestCase):
...
@@ -885,9 +885,9 @@ class TestCourseGrader(LoginEnrollmentTestCase):
problem_location
=
self
.
problem_location
(
problem_url_name
)
problem_location
=
self
.
problem_location
(
problem_url_name
)
modx_url
=
reverse
(
'modx_dispatch'
,
modx_url
=
reverse
(
'modx_dispatch'
,
kwargs
=
{
'course_id'
:
self
.
graded_course
.
id
,
kwargs
=
{
'course_id'
:
self
.
graded_course
.
id
,
'location'
:
problem_location
,
'location'
:
problem_location
,
'dispatch'
:
'problem_reset'
,
})
'dispatch'
:
'problem_reset'
,
})
resp
=
self
.
client
.
post
(
modx_url
)
resp
=
self
.
client
.
post
(
modx_url
)
return
resp
return
resp
...
...
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