Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed a test that no longer makes any sense.

Since unmanaged == autocommit, there's nothing to commit or roll back.
  • Loading branch information...
commit 86fd920f6761cbf93a7e5a9eb3c634e0e168a038 1 parent 0cee3c0
@aaugustin aaugustin authored
Showing with 0 additions and 13 deletions.
  1. +0 −13 tests/middleware/tests.py
View
13 tests/middleware/tests.py
@@ -703,19 +703,6 @@ def test_managed_response(self):
self.assertFalse(transaction.is_dirty())
self.assertEqual(Band.objects.count(), 1)
- # TODO: update this test to account for database-level autocommit.
- # Currently it fails under PostgreSQL because connections are never
- # marked dirty in non-managed mode.
- @expectedFailure
- def test_unmanaged_response(self):
- transaction.enter_transaction_management(False)
- self.assertEqual(Band.objects.count(), 0)
- TransactionMiddleware().process_response(self.request, self.response)
- self.assertFalse(transaction.is_managed())
- # The transaction middleware doesn't commit/rollback if management
- # has been disabled.
- self.assertTrue(transaction.is_dirty())
-
def test_exception(self):
transaction.enter_transaction_management()
Band.objects.create(name='The Beatles')

0 comments on commit 86fd920

Please sign in to comment.
Something went wrong with that request. Please try again.