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
fdc79b30
Commit
fdc79b30
authored
Jul 23, 2014
by
Ben McMorran
Committed by
cahrens
Aug 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds edit info to instantiated xblock in update_item
parent
9524c212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py
+3
-6
No files found.
common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py
View file @
fdc79b30
...
@@ -618,13 +618,10 @@ class TestMixedModuleStore(unittest.TestCase):
...
@@ -618,13 +618,10 @@ class TestMixedModuleStore(unittest.TestCase):
self
.
assertEqual
(
parent
,
self
.
course_locations
[
self
.
XML_COURSEID1
])
self
.
assertEqual
(
parent
,
self
.
course_locations
[
self
.
XML_COURSEID1
])
def
verify_get_parent_locations_results
(
self
,
expected_results
):
def
verify_get_parent_locations_results
(
self
,
expected_results
):
def
branch_agnostic
(
location
):
return
location
if
location
is
None
else
location
.
for_branch
(
None
)
for
child_location
,
parent_location
,
revision
in
expected_results
:
for
child_location
,
parent_location
,
revision
in
expected_results
:
self
.
assertEqual
(
self
.
assertEqual
(
branch_agnostic
(
parent_location
)
,
parent_location
,
branch_agnostic
(
self
.
store
.
get_parent_location
(
child_location
,
revision
=
revision
)
)
self
.
store
.
get_parent_location
(
child_location
,
revision
=
revision
)
)
)
@ddt.data
(
'draft'
,
'split'
)
@ddt.data
(
'draft'
,
'split'
)
...
@@ -904,7 +901,7 @@ class TestMixedModuleStore(unittest.TestCase):
...
@@ -904,7 +901,7 @@ class TestMixedModuleStore(unittest.TestCase):
)
)
self
.
assertEqual
(
self
.
user_id
,
block
.
edited_by
)
self
.
assertEqual
(
self
.
user_id
,
block
.
edited_by
)
self
.
assertGreater
(
datetime
.
datetime
.
now
(
UTC
),
block
.
edited_on
)
self
.
assertGreater
(
datetime
.
datetime
.
now
(
UTC
),
block
.
edited_on
)
@ddt.data
(
'draft'
)
@ddt.data
(
'draft'
)
def
test_create_item_populates_subtree_edited_info
(
self
,
default_ms
):
def
test_create_item_populates_subtree_edited_info
(
self
,
default_ms
):
self
.
initdb
(
default_ms
)
self
.
initdb
(
default_ms
)
...
...
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