Update Tests for EmbeddedDocument Unique Indicies

This commit is contained in:
Matthew Ellison
2014-11-20 11:20:04 -05:00
parent bc53dd6830
commit 43af9f3fad
3 changed files with 18 additions and 17 deletions

View File

@@ -512,16 +512,16 @@ class QuerySetTest(unittest.TestCase):
def test_updates_can_have_match_operators(self):
class Post(Document):
title = StringField(required=True)
tags = ListField(StringField())
comments = ListField(EmbeddedDocumentField("Comment"))
class Comment(EmbeddedDocument):
content = StringField()
name = StringField(max_length=120)
vote = IntField()
class Post(Document):
title = StringField(required=True)
tags = ListField(StringField())
comments = ListField(EmbeddedDocumentField("Comment"))
Post.drop_collection()
comm1 = Comment(content="very funny indeed", name="John S", vote=1)