Added Document.drop_collection, cleaned up tests
This commit is contained in:
parent
8e89c8b37a
commit
70ee0f57ea
4 changed files with 30 additions and 21 deletions
|
|
@ -177,8 +177,8 @@ class FieldTest(unittest.TestCase):
|
|||
post2.save()
|
||||
self.assertRaises(ValidationError, post1.__setattr__, 'author', post2)
|
||||
|
||||
self.db.drop_collection(User._meta['collection'])
|
||||
self.db.drop_collection(BlogPost._meta['collection'])
|
||||
User.drop_collection()
|
||||
BlogPost.drop_collection()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue