Skip to content

Commit 795874d

Browse files
committed
forgot to save this
1 parent b8db156 commit 795874d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ming/tests/test_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def test_base_session(self):
8181
doc = self.TestDocNoSchema({'_id':5, 'a':5})
8282
sess.save(doc)
8383
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)})
84+
doc = self.TestDocNoSchema({'_id':5, 'a':5, 'b': 6})
85+
sess.save(doc, 'a')
86+
impl.update.assert_called_with(dict(_id=5), {'$set':dict(a=5)})
8787
doc = self.TestDocNoSchema({'_id':5, 'a':5})
8888
impl.insert.return_value = bson.ObjectId()
8989
sess.insert(doc)

0 commit comments

Comments
 (0)