diff --git a/openwisp_controller/config/tests/test_admin.py b/openwisp_controller/config/tests/test_admin.py
index 62c28b313..2bb453894 100644
--- a/openwisp_controller/config/tests/test_admin.py
+++ b/openwisp_controller/config/tests/test_admin.py
@@ -2116,7 +2116,7 @@ def test_device_with_config_change_deactivate_deactivate(self):
self.assertContains(
response,
'
',
- 22,
+ 23,
)
# Save buttons are absent on deactivated device
self.assertNotContains(response, self._save_btn_html)
@@ -2199,9 +2199,9 @@ def _test_device_changelist_activate_deactivate_admin_action(
)
multiple_success_message_html = (
f'
The following devices were {html_method}ed'
- f' successfully: '
- f'{device1.name}, '
- f'{device2.name} and '
+ f'{device1.name}, '
+ f'{device2.name} and {device3.name}.'
)
single_error_message_html = (
diff --git a/tests/openwisp2/sample_config/tests.py b/tests/openwisp2/sample_config/tests.py
index b37685870..2de7b75e5 100644
--- a/tests/openwisp2/sample_config/tests.py
+++ b/tests/openwisp2/sample_config/tests.py
@@ -1,6 +1,10 @@
-from openwisp_controller.config.tests.test_admin import TestAdmin as BaseTestAdmin
+from openwisp_controller.config.tests.test_admin import (
+ TestAdmin as BaseTestAdmin,
+ TestTransactionAdmin as BaseTestTransactionAdmin,
+)
from openwisp_controller.config.tests.test_admin import (
TestDeviceGroupAdmin as BaseTestDeviceGroupAdmin,
+ TestDeviceGroupAdminTransaction as BaseTestDeviceGroupAdminTransaction,
)
from openwisp_controller.config.tests.test_api import TestConfigApi as BaseTestConfigApi
from openwisp_controller.config.tests.test_apps import TestApps as BaseTestApps
@@ -38,10 +42,18 @@ class TestAdmin(BaseTestAdmin):
app_label = 'sample_config'
+class TestTransactionAdmin(BaseTestTransactionAdmin):
+ app_label = 'sample_config'
+
+
class TestDeviceGroupAdmin(BaseTestDeviceGroupAdmin):
app_label = 'sample_config'
+class TestDeviceGroupAdminTransaction(BaseTestDeviceGroupAdminTransaction):
+ app_label = 'sample_config'
+
+
class TestConfig(BaseTestConfig):
pass
@@ -107,7 +119,9 @@ class TestVxlan(BaseTestVxlan):
del BaseTestAdmin
+del BaseTestTransactionAdmin
del BaseTestDeviceGroupAdmin
+del BaseTestDeviceGroupAdminTransaction
del BaseTestConfig
del BaseTestTransactionConfig
del BaseTestController