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
3f4ee28e
Commit
3f4ee28e
authored
Jan 29, 2015
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring the user service test.
TNL-1185
parent
7b10d14f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/djangoapps/xblock_django/tests/test_user_service.py
+3
-2
No files found.
common/djangoapps/xblock_django/tests/test_user_service.py
View file @
3f4ee28e
...
@@ -10,7 +10,7 @@ from xblock_django.user_service import (
...
@@ -10,7 +10,7 @@ from xblock_django.user_service import (
)
)
from
student.models
import
anonymous_id_for_user
from
student.models
import
anonymous_id_for_user
from
student.tests.factories
import
UserFactory
,
AnonymousUserFactory
from
student.tests.factories
import
UserFactory
,
AnonymousUserFactory
from
opaque_keys.edx.
locations
import
SlashSeparated
CourseKey
from
opaque_keys.edx.
keys
import
CourseKey
class
UserServiceTestCase
(
TestCase
):
class
UserServiceTestCase
(
TestCase
):
...
@@ -80,9 +80,10 @@ class UserServiceTestCase(TestCase):
...
@@ -80,9 +80,10 @@ class UserServiceTestCase(TestCase):
"""
"""
Tests for anonymous_user_id method returns anonymous user id for a user.
Tests for anonymous_user_id method returns anonymous user id for a user.
"""
"""
course_key
=
CourseKey
.
from_string
(
'edX/toy/2012_Fall'
)
anon_user_id
=
anonymous_id_for_user
(
anon_user_id
=
anonymous_id_for_user
(
user
=
self
.
user
,
user
=
self
.
user
,
course_id
=
SlashSeparatedCourseKey
(
'edX'
,
'toy'
,
'2012_Fall'
)
,
course_id
=
course_key
,
save
=
True
save
=
True
)
)
...
...
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