Test clean up (#255)
This commit is contained in:
parent
6186691259
commit
d80b1a7749
@ -3377,9 +3377,7 @@ class DocumentTest(unittest.TestCase):
|
||||
name = StringField()
|
||||
|
||||
Person.drop_collection()
|
||||
person = Person()
|
||||
person.name = "Harry Potter"
|
||||
person.save(cascade=False)
|
||||
Person(name="Harry Potter").save()
|
||||
|
||||
person = Person.objects.first()
|
||||
self.assertTrue('_id' in person._data.keys())
|
||||
|
Loading…
x
Reference in New Issue
Block a user