Test clean up (#255)
This commit is contained in:
parent
6186691259
commit
d80b1a7749
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue