Repository: openwisp/openwisp-utils (language: python)

Issue:
[deps] Add support for Django 4.1.0 and Django 4.2.0
- [Django 4.1.0 release notes](https://docs.djangoproject.com/en/4.1/releases/4.1/)
- [Django 4.2.0 release notes](https://docs.djangoproject.com/en/4.2/releases/4.2/)

We need to ensure that other project dependencies are updated accordingly. 


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 916e4ce4..da3ab596 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,7 +26,8 @@ jobs:
           - "3.10"
         django-version:
           - django~=3.2.0
-          - django~=4.0.0
+          - django~=4.1.0
+          - django~=4.2.0
         include:
           - django-version: django~=3.2.0
             python-version: 3.7
diff --git a/openwisp_utils/admin_theme/__init__.py b/openwisp_utils/admin_theme/__init__.py
index 714b97a8..9a9fe3ef 100644
--- a/openwisp_utils/admin_theme/__init__.py
+++ b/openwisp_utils/admin_theme/__init__.py
@@ -4,5 +4,3 @@
     unregister_dashboard_chart,
     unregister_dashboard_template,
 )
-
-default_app_config = 'openwisp_utils.admin_theme.apps.OpenWispAdminThemeConfig'
diff --git a/setup.py b/setup.py
index 0bf0b406..797e6f34 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@
     scripts=['openwisp-qa-check', 'openwisp-qa-format', 'openwisp-pre-push-hook'],
     zip_safe=False,
     install_requires=[
-        'django-model-utils~=4.2.0',
+        'django-model-utils~=4.3.1',
         'django-compress-staticfiles~=1.0.1b',
         'django-admin-autocomplete-filter~=0.7.1',
         'swapper~=1.3.0',
@@ -60,12 +60,12 @@
             'tblib~=1.7',
         ],
         'rest': [
-            'djangorestframework~=3.13.0',
-            'django-filter~=22.1',  # django-filter uses CalVer
+            'djangorestframework~=3.14.0',
+            'django-filter~=23.2',  # django-filter uses CalVer
             'drf-yasg~=1.21.0',
         ],
-        'celery': ['celery~=5.2.3'],
-        'selenium': ['selenium~=4.9.1'],
+        'celery': ['celery~=5.3.0'],
+        'selenium': ['selenium~=4.10.0'],
     },
     classifiers=[
         'Development Status :: 3 - Alpha',


Test patch:
diff --git a/openwisp_utils/test_selenium_mixins.py b/openwisp_utils/test_selenium_mixins.py
index e62fd6e9..ebdd0055 100644
--- a/openwisp_utils/test_selenium_mixins.py
+++ b/openwisp_utils/test_selenium_mixins.py
@@ -26,9 +26,9 @@ def setUpClass(cls):
         chrome_options.add_argument('--remote-debugging-port=9222')
         capabilities = DesiredCapabilities.CHROME
         capabilities['goog:loggingPrefs'] = {'browser': 'ALL'}
+        chrome_options.set_capability('cloud:options', capabilities)
         cls.web_driver = webdriver.Chrome(
             options=chrome_options,
-            desired_capabilities=capabilities,
         )
 
     @classmethod
diff --git a/tests/test_project/__init__.py b/tests/test_project/__init__.py
index 5ace57c9..e69de29b 100644
--- a/tests/test_project/__init__.py
+++ b/tests/test_project/__init__.py
@@ -1,1 +0,0 @@
-default_app_config = 'test_project.apps.TestAppConfig'
diff --git a/tests/test_project/apps.py b/tests/test_project/apps.py
index 30ff0d8c..0f98feee 100644
--- a/tests/test_project/apps.py
+++ b/tests/test_project/apps.py
@@ -165,3 +165,6 @@ def register_menu_groups(self):
                 'icon': 'code',
             },
         )
+
+
+del ApiAppConfig