Commits

Max Noel committed 522e497

* tests/model: Fixed test_save_autoincrement_magic_overwrite (forgot to mock Item, which interfered badly with the mock boto's Tables).

Comments (0)

Files changed (1)

dynamodb_mapper/tests/test_model.py

         l.text = "Everybody's dead, Dave."
         self.assertRaises(DynamoDBResponseError, l.save)
 
+    @mock.patch("dynamodb_mapper.model.Item")
     @mock.patch("dynamodb_mapper.model.boto")
-    def test_save_autoincrement_magic_overwrite(self, m_boto):
+    def test_save_autoincrement_magic_overwrite(self, m_boto, m_item):
         l = LogEntry()
         l.text = "Everybody's dead, Dave."
         l.id = MAGIC_KEY