|
11 | 11 |
|
12 | 12 | from openwisp_utils.tests import capture_any_output, catch_signal |
13 | 13 |
|
14 | | -from ...tests.utils import TransactionTestMixin |
15 | 14 | from .. import settings as app_settings |
16 | 15 | from ..commands import ( |
17 | 16 | COMMANDS, |
@@ -888,7 +887,7 @@ def test_command_multiple_connections(self, connect_mocked): |
888 | 887 | self.assertIn(command.connection, [dc1, dc2]) |
889 | 888 |
|
890 | 889 |
|
891 | | -class TestModelsTransaction(TransactionTestMixin, BaseTestModels, TransactionTestCase): |
| 890 | +class TestModelsTransaction(BaseTestModels, TransactionTestCase): |
892 | 891 | def _prepare_conf_object(self, organization=None): |
893 | 892 | if not organization: |
894 | 893 | organization = self._create_org(name='org1') |
@@ -1121,12 +1120,12 @@ def test_chunk_size(self): |
1121 | 1120 | organization=org, name='device3', mac_address='33:33:33:33:33:33' |
1122 | 1121 | ) |
1123 | 1122 | ) |
1124 | | - with self.assertNumQueries(31): |
| 1123 | + with self.assertNumQueries(32): |
1125 | 1124 | credential = self._create_credentials(auto_add=True, organization=org) |
1126 | 1125 | self.assertEqual(credential.deviceconnection_set.count(), 3) |
1127 | 1126 |
|
1128 | 1127 | with mock.patch.object(Credentials, 'chunk_size', 2): |
1129 | | - with self.assertNumQueries(33): |
| 1128 | + with self.assertNumQueries(35): |
1130 | 1129 | credential = self._create_credentials( |
1131 | 1130 | name='Mocked Credential', auto_add=True, organization=org |
1132 | 1131 | ) |
0 commit comments