Skip to content

Commit

Permalink
Improved update in test case for removing inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Aug 18, 2011
1 parent 91a0e49 commit bda716e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/document.py
Expand Up @@ -431,7 +431,7 @@ class Animal(Document):
'allow_inheritance': False,
'indexes': ['name']
}
collection.update({}, {"$unset": {"_types": 1, "_cls": 1}}, False, True)
collection.update({}, {"$unset": {"_types": 1, "_cls": 1}}, multi=True)

# Confirm extra data is removed
obj = collection.find_one()
Expand Down Expand Up @@ -1948,14 +1948,14 @@ class BlogPost(Document):
def test_list_search_by_embedded(self):
class User(Document):
username = StringField(required=True)

meta = {'allow_inheritance': False}

class Comment(EmbeddedDocument):
comment = StringField()
user = ReferenceField(User,
required=True)

meta = {'allow_inheritance': False}

class Page(Document):
Expand Down

0 comments on commit bda716e

Please sign in to comment.