Better implementation for none - MongoEngine/mongoengine#127
This commit is contained in:
parent
8706fbe461
commit
e7c0da38c2
2 changed files with 7 additions and 3 deletions
|
|
@ -258,7 +258,9 @@ class QuerySetTest(unittest.TestCase):
|
|||
|
||||
A.drop_collection()
|
||||
A().save()
|
||||
self.assertEqual(A.objects.none(), [])
|
||||
|
||||
self.assertEqual(list(A.objects.none()), [])
|
||||
self.assertEqual(list(A.objects.none().all()), [])
|
||||
|
||||
def test_chaining(self):
|
||||
class A(Document):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue