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
d7693d96
Commit
d7693d96
authored
Apr 29, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unit test should just use direct store. Also remove unused import and logging.
parent
7d206e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
cms/djangoapps/contentstore/tests/test_contentstore.py
+2
-3
common/lib/xmodule/xmodule/modulestore/draft.py
+0
-2
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
d7693d96
...
...
@@ -265,7 +265,6 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
import_from_xml
(
modulestore
(),
'common/test/data/'
,
[
'full'
])
direct_store
=
modulestore
(
'direct'
)
draft_store
=
modulestore
(
'draft'
)
sequential
=
direct_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'sequential'
,
'Administrivia_and_Circuit_Elements'
,
None
]))
...
...
@@ -282,14 +281,14 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
found
=
False
try
:
d
raf
t_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'sequential'
,
'Administrivia_and_Circuit_Elements'
,
None
]))
d
irec
t_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'sequential'
,
'Administrivia_and_Circuit_Elements'
,
None
]))
found
=
True
except
ItemNotFoundError
:
pass
self
.
assertFalse
(
found
)
chapter
=
d
raf
t_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'chapter'
,
'Week_1'
,
None
]))
chapter
=
d
irec
t_store
.
get_item
(
Location
([
'i4x'
,
'edX'
,
'full'
,
'chapter'
,
'Week_1'
,
None
]))
# make sure the parent no longer points to the child object which was deleted
self
.
assertFalse
(
sequential
.
location
.
url
()
in
chapter
.
children
)
...
...
common/lib/xmodule/xmodule/modulestore/draft.py
View file @
d7693d96
...
...
@@ -4,8 +4,6 @@ from . import ModuleStoreBase, Location, namedtuple_to_son
from
.exceptions
import
ItemNotFoundError
from
.inheritance
import
own_metadata
import
logging
DRAFT
=
'draft'
...
...
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