Commit 8d368eda by Don Mitchell

Merge pull request #5201 from edx/split/lms-11395

Split/lms 11395
parents 040b1c3d 7090ef65
...@@ -661,13 +661,16 @@ class TestMixedModuleStore(unittest.TestCase): ...@@ -661,13 +661,16 @@ class TestMixedModuleStore(unittest.TestCase):
with self.assertRaises(NotImplementedError): with self.assertRaises(NotImplementedError):
self.store.delete_item(self.xml_chapter_location, self.user_id) self.store.delete_item(self.xml_chapter_location, self.user_id)
with self.store.branch_setting(ModuleStoreEnum.Branch.draft_preferred, self.writable_chapter_location.course_key):
with check_mongo_calls(max_find, max_send): with check_mongo_calls(max_find, max_send):
self.store.delete_item(self.writable_chapter_location, self.user_id) self.store.delete_item(self.writable_chapter_location, self.user_id)
# verify it's gone # verify it's gone
# FIXME check both published and draft branches
with self.assertRaises(ItemNotFoundError): with self.assertRaises(ItemNotFoundError):
self.store.get_item(self.writable_chapter_location) self.store.get_item(self.writable_chapter_location)
# verify it's gone from published too
with self.assertRaises(ItemNotFoundError):
self.store.get_item(self.writable_chapter_location, revision=ModuleStoreEnum.RevisionOption.published_only)
# Draft: # Draft:
# queries: find parent (definition.children), count versions of item, get parent, count grandparents, # queries: find parent (definition.children), count versions of item, get parent, count grandparents,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment