Added update() convenience method to a document
Thanks to @dcrosta for the initial code [closes #229]
This commit is contained in:
parent
7a3412dc13
commit
a4c197a83c
3 changed files with 36 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ class QuerySetTest(unittest.TestCase):
|
|||
self.Person.objects(pk=author.pk).update({})
|
||||
|
||||
def update_one_raises():
|
||||
self.Person.objects(pk=author.pk).update({})
|
||||
self.Person.objects(pk=author.pk).update_one({})
|
||||
|
||||
self.assertRaises(OperationError, update_raises)
|
||||
self.assertRaises(OperationError, update_one_raises)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue