We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8db156 commit 795874dCopy full SHA for 795874d
ming/tests/test_session.py
@@ -81,9 +81,9 @@ def test_base_session(self):
81
doc = self.TestDocNoSchema({'_id':5, 'a':5})
82
sess.save(doc)
83
impl.save.assert_called_with(dict(_id=5, a=5))
84
- # doc = self.TestDocNoSchema({'_id':5, 'a':5})
85
- # sess.save(doc, 'a')
86
- # impl.update.assert_called_with(dict(_id=5), {'$set':dict(a=5)})
+ doc = self.TestDocNoSchema({'_id':5, 'a':5, 'b': 6})
+ sess.save(doc, 'a')
+ impl.update.assert_called_with(dict(_id=5), {'$set':dict(a=5)})
87
88
impl.insert.return_value = bson.ObjectId()
89
sess.insert(doc)
0 commit comments