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
c651642d
Commit
c651642d
authored
Oct 14, 2014
by
Martyn James
Committed by
Jonathan Piacenti
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slashes: formatted ids removed
parent
46675ffb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
9 deletions
+6
-9
lms/djangoapps/api_manager/groups/tests.py
+0
-3
lms/djangoapps/api_manager/users/tests.py
+2
-2
lms/djangoapps/gradebook/management/commands/generate_gradebook_entries.py
+1
-1
lms/djangoapps/gradebook/management/commands/tests/test_generate_gradebook_entries.py
+1
-1
lms/djangoapps/progress/management/commands/generate_progress_entries.py
+1
-1
lms/djangoapps/progress/management/commands/tests/test_generate_progress_entries.py
+1
-1
No files found.
lms/djangoapps/api_manager/groups/tests.py
View file @
c651642d
...
...
@@ -895,9 +895,6 @@ class GroupsApiTests(ModuleStoreTestCase):
response
=
self
.
do_post
(
self
.
base_groups_uri
,
data
)
self
.
assertEqual
(
response
.
status_code
,
201
)
test_uri
=
response
.
data
[
'uri'
]
+
'/courses'
data
=
{
'course_id'
:
"slashes:invalid+course+id"
}
response
=
self
.
do_post
(
test_uri
,
data
)
self
.
assertEqual
(
response
.
status_code
,
404
)
data
=
{
'course_id'
:
"invalid/course/id"
}
response
=
self
.
do_post
(
test_uri
,
data
)
self
.
assertEqual
(
response
.
status_code
,
404
)
...
...
lms/djangoapps/api_manager/users/tests.py
View file @
c651642d
...
...
@@ -757,7 +757,7 @@ class UsersApiTests(ModuleStoreTestCase):
response
=
self
.
do_post
(
test_uri
,
data
)
user_id
=
response
.
data
[
'id'
]
test_uri
=
'{}/{}/courses'
.
format
(
test_uri
,
str
(
user_id
))
data
=
{
'course_id'
:
'
slashes:234asdfapsdf+2sdfs+
sdf'
}
data
=
{
'course_id'
:
'
234asdfapsdf/2sdfs/
sdf'
}
response
=
self
.
do_post
(
test_uri
,
data
)
self
.
assertEqual
(
response
.
status_code
,
404
)
data
=
{
'course_id'
:
'really-invalid-course-id-oh-boy-watch-out'
}
...
...
@@ -1081,7 +1081,7 @@ class UsersApiTests(ModuleStoreTestCase):
self
.
assertEqual
(
response
.
status_code
,
204
)
def
test_user_course_grades_course_not_found
(
self
):
test_uri
=
'{}/{}/courses/s
lashes:some+unknown+
course/grades'
.
format
(
self
.
users_base_uri
,
self
.
user
.
id
)
test_uri
=
'{}/{}/courses/s
ome/unknown/
course/grades'
.
format
(
self
.
users_base_uri
,
self
.
user
.
id
)
response
=
self
.
do_get
(
test_uri
)
self
.
assertEqual
(
response
.
status_code
,
404
)
...
...
lms/djangoapps/gradebook/management/commands/generate_gradebook_entries.py
View file @
c651642d
...
...
@@ -28,7 +28,7 @@ class Command(BaseCommand):
"--course_ids"
,
dest
=
"course_ids"
,
help
=
"List of courses for which to generate grades"
,
metavar
=
"
slashes:first+course+id,slashes:second+course+
id"
metavar
=
"
first/course/id,second/course/
id"
),
make_option
(
"-u"
,
...
...
lms/djangoapps/gradebook/management/commands/tests/test_generate_gradebook_entries.py
View file @
c651642d
...
...
@@ -136,7 +136,7 @@ class GenerateGradebookEntriesTests(ModuleStoreTestCase):
Test the gradebook entry generator
"""
# Set up the command context
course_ids
=
'{},
slashes:bogus+course+
id'
.
format
(
self
.
course
.
id
)
course_ids
=
'{},
bogus/course/
id'
.
format
(
self
.
course
.
id
)
user_ids
=
'{}'
.
format
(
self
.
users
[
0
]
.
id
)
current_entries
=
StudentGradebook
.
objects
.
all
()
self
.
assertEqual
(
len
(
current_entries
),
0
)
...
...
lms/djangoapps/progress/management/commands/generate_progress_entries.py
View file @
c651642d
...
...
@@ -29,7 +29,7 @@ class Command(BaseCommand):
"--course_ids"
,
dest
=
"course_ids"
,
help
=
"List of courses for which to generate progress"
,
metavar
=
"
slashes:first+course+id,slashes:second+course+
id"
metavar
=
"
first/course/id,second/course/
id"
),
make_option
(
"-u"
,
...
...
lms/djangoapps/progress/management/commands/tests/test_generate_progress_entries.py
View file @
c651642d
...
...
@@ -106,7 +106,7 @@ class GenerateProgressEntriesTests(ModuleStoreTestCase):
Test the progress entry generator
"""
# Set up the command context
course_ids
=
'{},
slashes:bogus+course+
id'
.
format
(
self
.
course
.
id
)
course_ids
=
'{},
bogus/course/
id'
.
format
(
self
.
course
.
id
)
user_ids
=
'{}'
.
format
(
self
.
users
[
0
]
.
id
)
current_entries
=
StudentProgress
.
objects
.
all
()
self
.
assertEqual
(
len
(
current_entries
),
0
)
...
...
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