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
9a3e122a
Commit
9a3e122a
authored
Jan 24, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few failing tests
parent
cad3a19b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/courseware/tests/test_model_data.py
+3
-2
No files found.
lms/djangoapps/courseware/tests/test_model_data.py
View file @
9a3e122a
...
...
@@ -114,6 +114,7 @@ class TestDescriptorFallback(TestCase):
class
TestInvalidScopes
(
TestCase
):
def
setUp
(
self
):
self
.
desc_md
=
{}
self
.
user
=
UserFactory
.
create
()
self
.
mdc
=
ModelDataCache
([
mock_descriptor
([
mock_field
(
Scope
.
student_state
,
'a_field'
)])],
course_id
,
self
.
user
)
self
.
kvs
=
LmsKeyValueStore
(
self
.
desc_md
,
self
.
mdc
)
...
...
@@ -205,7 +206,7 @@ class TestSettingsStorage(TestCase):
settings
=
SettingsFactory
.
create
()
self
.
user
=
UserFactory
.
create
()
self
.
desc_md
=
{}
self
.
mdc
=
ModelDataCache
([
mock_descriptor
()],
course_id
,
self
.
user
)
self
.
mdc
=
ModelDataCache
([
mock_descriptor
(
[
mock_field
(
Scope
.
settings
,
'settings_field'
)]
)],
course_id
,
self
.
user
)
self
.
kvs
=
LmsKeyValueStore
(
self
.
desc_md
,
self
.
mdc
)
def
test_get_existing_field
(
self
):
...
...
@@ -246,7 +247,7 @@ class TestContentStorage(TestCase):
content
=
ContentFactory
.
create
()
self
.
user
=
UserFactory
.
create
()
self
.
desc_md
=
{}
self
.
mdc
=
ModelDataCache
([
mock_descriptor
()],
course_id
,
self
.
user
)
self
.
mdc
=
ModelDataCache
([
mock_descriptor
(
[
mock_field
(
Scope
.
content
,
'content_field'
)]
)],
course_id
,
self
.
user
)
self
.
kvs
=
LmsKeyValueStore
(
self
.
desc_md
,
self
.
mdc
)
def
test_get_existing_field
(
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