query profiler test fix

This commit is contained in:
Erdenezul Batmunkh 2018-05-21 09:34:44 +08:00
parent e4451ccaf8
commit f7a3acfaf4

View File

@ -855,11 +855,7 @@ class QuerySetTest(unittest.TestCase):
self.assertEqual(q, 0) self.assertEqual(q, 0)
Blog.objects.insert(blogs) Blog.objects.insert(blogs)
if mongodb_version < (2, 6): self.assertEqual(q, 100) # 99 for insert 1 for fetch
self.assertEqual(q, 101) # 100 for insert, and 1 for in bulk fetch
else:
# 1 for insert, and 1 for in bulk fetch
self.assertEqual(q, 2)
Blog.drop_collection() Blog.drop_collection()