diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69b126e..69fad3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit diff --git a/tests/__init__.py b/tests/__init__.py index a09f24f..45b9739 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,7 @@ """ Tests for `djangocms_page_tags` module. """ + from django.core.cache import cache from djangocms_helper.base_test import BaseTestCase diff --git a/tests/test_toolbar.py b/tests/test_toolbar.py index 68604ef..4d79f6f 100644 --- a/tests/test_toolbar.py +++ b/tests/test_toolbar.py @@ -1,6 +1,7 @@ """ Tests for `djangocms_page_tags` modules module. """ + from cms.toolbar.items import Menu, ModalItem, SubMenu from cms.utils.i18n import get_language_object from django.contrib.auth.models import Permission, User