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
d445c235
Commit
d445c235
authored
Mar 31, 2017
by
Christina Roberts
Committed by
GitHub
Mar 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14802 from edx/christina/mockpartitionscheme
Remove dependency on test_partitions.
parents
8249f33c
ec519436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
common/test/acceptance/tests/helpers.py
+5
-2
No files found.
common/test/acceptance/tests/helpers.py
View file @
d445c235
...
@@ -24,7 +24,6 @@ from opaque_keys.edx.locator import CourseLocator
...
@@ -24,7 +24,6 @@ from opaque_keys.edx.locator import CourseLocator
from
pymongo
import
MongoClient
,
ASCENDING
from
pymongo
import
MongoClient
,
ASCENDING
from
openedx.core.lib.tests.assertions.events
import
assert_event_matches
,
is_matching_event
,
EventMatchTolerates
from
openedx.core.lib.tests.assertions.events
import
assert_event_matches
,
is_matching_event
,
EventMatchTolerates
from
xmodule.partitions.partitions
import
UserPartition
from
xmodule.partitions.partitions
import
UserPartition
from
xmodule.partitions.tests.test_partitions
import
MockUserPartitionScheme
from
selenium.common.exceptions
import
StaleElementReferenceException
from
selenium.common.exceptions
import
StaleElementReferenceException
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.support.select
import
Select
from
selenium.webdriver.support.select
import
Select
...
@@ -831,8 +830,12 @@ def create_user_partition_json(partition_id, name, description, groups, scheme="
...
@@ -831,8 +830,12 @@ def create_user_partition_json(partition_id, name, description, groups, scheme="
"""
"""
Helper method to create user partition JSON. If scheme is not supplied, "random" is used.
Helper method to create user partition JSON. If scheme is not supplied, "random" is used.
"""
"""
# All that is persisted about a scheme is its name.
class
MockScheme
(
object
):
name
=
scheme
return
UserPartition
(
return
UserPartition
(
partition_id
,
name
,
description
,
groups
,
Mock
UserPartitionScheme
(
scheme
)
partition_id
,
name
,
description
,
groups
,
Mock
Scheme
(
)
)
.
to_json
()
)
.
to_json
()
...
...
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