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
14ad8cd7
Commit
14ad8cd7
authored
Feb 29, 2016
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SharedModuleStoreTestCase conversion for speedup.
parent
bd4cc57b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lms/djangoapps/courseware/tests/test_field_overrides.py
+10
-3
No files found.
lms/djangoapps/courseware/tests/test_field_overrides.py
View file @
14ad8cd7
...
...
@@ -7,7 +7,7 @@ from nose.plugins.attrib import attr
from
django.test.utils
import
override_settings
from
xblock.field_data
import
DictFieldData
from
xmodule.modulestore.tests.factories
import
CourseFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.django_utils
import
Shared
ModuleStoreTestCase
from
..field_overrides
import
(
disable_overrides
,
...
...
@@ -23,14 +23,21 @@ TESTUSER = "testuser"
@attr
(
'shard_1'
)
@override_settings
(
FIELD_OVERRIDE_PROVIDERS
=
(
'courseware.tests.test_field_overrides.TestOverrideProvider'
,))
class
OverrideFieldDataTests
(
ModuleStoreTestCase
):
class
OverrideFieldDataTests
(
Shared
ModuleStoreTestCase
):
"""
Tests for `OverrideFieldData`.
"""
@classmethod
def
setUpClass
(
cls
):
"""
Course is created here and shared by all the class's tests.
"""
super
(
OverrideFieldDataTests
,
cls
)
.
setUpClass
()
cls
.
course
=
CourseFactory
.
create
(
enable_ccx
=
True
)
def
setUp
(
self
):
super
(
OverrideFieldDataTests
,
self
)
.
setUp
()
self
.
course
=
CourseFactory
.
create
(
enable_ccx
=
True
)
OverrideFieldData
.
provider_classes
=
None
def
tearDown
(
self
):
...
...
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