Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-user-state-client
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-user-state-client
Commits
0e70dad8
Commit
0e70dad8
authored
Jul 27, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the block_type used in the tests configurable
parent
18d31d57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
edx_user_state_client/tests.py
+6
-1
No files found.
edx_user_state_client/tests.py
View file @
0e70dad8
...
...
@@ -49,10 +49,15 @@ class _UserStateClientTestUtils(TestCase):
course
=
block
//
1000
return
BlockUsageLocator
(
self
.
_course
(
course
),
'block_type'
,
self
.
_block_type
(
block
)
,
'block{}'
.
format
(
block
)
)
@contract
(
block
=
int
)
def
_block_type
(
self
,
block
):
# pylint: disable=unused-argument
"""Return the block type for the specified ``block_idx``."""
return
'block_type'
@contract
(
course
=
int
)
def
_course
(
self
,
course
):
"""Return a CourseKey for the course ``course_idx``"""
...
...
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