Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
e320af02
Unverified
Commit
e320af02
authored
4 years ago
by
Nimisha Asthagiri
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23552 from edx/arch/django2-badges
Django2 Badges: fix course_id string
parents
b1baf5db
8a0d57ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/badges/api/tests.py
+2
-2
2 additions, 2 deletions
lms/djangoapps/badges/api/tests.py
with
2 additions
and
2 deletions
lms/djangoapps/badges/api/tests.py
+
2
−
2
View file @
e320af02
...
...
@@ -133,10 +133,10 @@ class TestUserCourseBadgeAssertions(UserAssertionTestCase):
# Also should not be included, as they don't share the same user.
for
dummy
in
range
(
6
):
BadgeAssertionFactory
.
create
(
badge_class
=
badge_class
)
response
=
self
.
get_json
(
self
.
url
(),
data
=
{
'
course_id
'
:
course_key
})
response
=
self
.
get_json
(
self
.
url
(),
data
=
{
'
course_id
'
:
str
(
course_key
)
})
self
.
assertEqual
(
len
(
response
[
'
results
'
]),
3
)
unused_course
=
CourseFactory
.
create
()
response
=
self
.
get_json
(
self
.
url
(),
data
=
{
'
course_id
'
:
unused_course
.
location
.
course_key
})
response
=
self
.
get_json
(
self
.
url
(),
data
=
{
'
course_id
'
:
str
(
unused_course
.
location
.
course_key
)
})
self
.
assertEqual
(
len
(
response
[
'
results
'
]),
0
)
def
test_assertion_structure
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment