Skip to content
Snippets Groups Projects
Unverified Commit e320af02 authored by Nimisha Asthagiri's avatar Nimisha Asthagiri Committed by GitHub
Browse files

Merge pull request #23552 from edx/arch/django2-badges

Django2 Badges: fix course_id string
parents b1baf5db 8a0d57ee
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment