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