Revert "add tests to increase code coverage"
This commit is contained in:
@@ -1861,10 +1861,6 @@ class QuerySetTest(unittest.TestCase):
|
||||
post = BlogPost(name="Test Post", hits=5, tags=['test'])
|
||||
post.save()
|
||||
|
||||
BlogPost.objects.update(hits=11)
|
||||
post.reload()
|
||||
self.assertEqual(post.hits, 11)
|
||||
|
||||
BlogPost.objects.update(set__hits=10)
|
||||
post.reload()
|
||||
self.assertEqual(post.hits, 10)
|
||||
@@ -1886,12 +1882,6 @@ class QuerySetTest(unittest.TestCase):
|
||||
post.reload()
|
||||
self.assertTrue('mongo' in post.tags)
|
||||
|
||||
# Push with arrays
|
||||
BlogPost.objects.update(push__tags=['python', 'scala'])
|
||||
post.reload()
|
||||
self.assertTrue('python' in post.tags)
|
||||
self.assertTrue('scala' in post.tags)
|
||||
|
||||
BlogPost.objects.update_one(push_all__tags=['db', 'nosql'])
|
||||
post.reload()
|
||||
self.assertTrue('db' in post.tags and 'nosql' in post.tags)
|
||||
|
||||
Reference in New Issue
Block a user