Skip to content

Commit

Permalink
forgot to save this
Browse files Browse the repository at this point in the history
  • Loading branch information
CastixGitHub committed May 14, 2022
1 parent b8db156 commit 795874d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ming/tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def test_base_session(self):
doc = self.TestDocNoSchema({'_id':5, 'a':5})
sess.save(doc)
impl.save.assert_called_with(dict(_id=5, a=5))
# doc = self.TestDocNoSchema({'_id':5, 'a':5})
# sess.save(doc, 'a')
# 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)})
doc = self.TestDocNoSchema({'_id':5, 'a':5})
impl.insert.return_value = bson.ObjectId()
sess.insert(doc)
Expand Down

0 comments on commit 795874d

Please sign in to comment.