From 02e21d8ab7849ca906c3a96a59ca30b5886b2e3d Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 30 Jul 2014 13:43:05 -0400 Subject: [PATCH] fixup! Count & compare db hits between old and split mongo LMS-11090 --- .../xmodule/modulestore/tests/test_mixed_modulestore.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py b/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py index 8ac811ce73..c9ca1d821a 100644 --- a/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py +++ b/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py @@ -412,7 +412,7 @@ class TestMixedModuleStore(unittest.TestCase): self.store.publish(component.location, self.user_id) self.assertFalse(self.store.has_changes(component.location)) - @ddt.data(('draft', 7, 2), ('split', 3, 2)) + @ddt.data(('draft', 7, 2), ('split', 13, 4)) @ddt.unpack def test_delete_item(self, default_ms, max_find, max_send): """ @@ -431,7 +431,7 @@ class TestMixedModuleStore(unittest.TestCase): with self.assertRaises(ItemNotFoundError): self.store.get_item(self.writable_chapter_location) - @ddt.data(('draft', 8, 2), ('split', 3, 2)) + @ddt.data(('draft', 8, 2), ('split', 13, 4)) @ddt.unpack def test_delete_private_vertical(self, default_ms, max_find, max_send): """ @@ -478,7 +478,7 @@ class TestMixedModuleStore(unittest.TestCase): self.assertFalse(self.store.has_item(leaf_loc)) self.assertNotIn(vert_loc, course.children) - @ddt.data(('draft', 4, 1), ('split', 3, 2)) + @ddt.data(('draft', 4, 1), ('split', 5, 2)) @ddt.unpack def test_delete_draft_vertical(self, default_ms, max_find, max_send): """ @@ -916,7 +916,7 @@ class TestMixedModuleStore(unittest.TestCase): self.assertEqual(len(self.store.get_courses_for_wiki('edX.simple.2012_Fall')), 0) self.assertEqual(len(self.store.get_courses_for_wiki('no_such_wiki')), 0) - @ddt.data(('draft', 2, 6), ('split', 5, 2)) + @ddt.data(('draft', 2, 6), ('split', 7, 2)) @ddt.unpack def test_unpublish(self, default_ms, max_find, max_send): """