1. Ludia
  2. Untitled project
  3. dynamodb-mapper

Commits

Max Noel  committed 0b666b0

* transactions: Updated unit test -- max_retries_exceeded results in a pending transaction, not a running one (nothing was saved).

  • Participants
  • Parent commits 906de73
  • Branches default

Comments (0)

Files changed (1)

File dynamodb_mapper/tests/test_transactions.py

View file
         self.assertRaises(MaxRetriesExceededError, t.commit)
         self.assertEquals(m_user_save.call_count, Transaction.MAX_RETRIES)
         m_transaction_save.assert_called()
-        self.assertEquals(t.status, "running")
+        self.assertEquals(t.status, "pending")
 
     def test_get_2_transactors(self):
         t = collectRewards()