diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-11 15:10:58 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-11 15:10:58 +0100 |
commit | e654180ce2a11ef4c525497d6c40dc542e16806c (patch) | |
tree | 7658f47dfaafe0dd09fe62fd5525e8f6e6a41ba7 /tests/fixtures_model_package | |
parent | f32100939e8ea8a2714e45e22467af5df55c8f33 (diff) | |
download | django-e654180ce2a11ef4c525497d6c40dc542e16806c.tar.gz |
Improved the API of set_autocommit.
Diffstat (limited to 'tests/fixtures_model_package')
-rw-r--r-- | tests/fixtures_model_package/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fixtures_model_package/tests.py b/tests/fixtures_model_package/tests.py index 894a6c7fde..c250f647ce 100644 --- a/tests/fixtures_model_package/tests.py +++ b/tests/fixtures_model_package/tests.py @@ -25,7 +25,7 @@ class SampleTestCase(TestCase): class TestNoInitialDataLoading(TransactionTestCase): def test_syncdb(self): - transaction.set_autocommit(autocommit=False) + transaction.set_autocommit(False) try: Book.objects.all().delete() @@ -37,7 +37,7 @@ class TestNoInitialDataLoading(TransactionTestCase): self.assertQuerysetEqual(Book.objects.all(), []) transaction.rollback() finally: - transaction.set_autocommit(autocommit=True) + transaction.set_autocommit(True) def test_flush(self): @@ -49,7 +49,7 @@ class TestNoInitialDataLoading(TransactionTestCase): lambda a: a.name ) - transaction.set_autocommit(autocommit=False) + transaction.set_autocommit(False) try: management.call_command( 'flush', @@ -61,7 +61,7 @@ class TestNoInitialDataLoading(TransactionTestCase): self.assertQuerysetEqual(Book.objects.all(), []) transaction.rollback() finally: - transaction.set_autocommit(autocommit=True) + transaction.set_autocommit(True) class FixtureTestCase(TestCase): |