Fixed EmailField so can add extra validation
(MongoEngine/mongoengine#173, MongoEngine/mongoengine#174, MongoEngine/mongoengine#187)
This commit is contained in:
parent
155d79ff4d
commit
6997e02476
4 changed files with 8 additions and 2 deletions
|
|
@ -591,6 +591,10 @@ class QuerySetTest(unittest.TestCase):
|
|||
|
||||
self.assertRaises(OperationError, throw_operation_error)
|
||||
|
||||
# Test can insert new doc
|
||||
new_post = Blog(title="code", id=ObjectId())
|
||||
Blog.objects.insert(new_post)
|
||||
|
||||
# test handles other classes being inserted
|
||||
def throw_operation_error_wrong_doc():
|
||||
class Author(Document):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue