mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 15:46:20 +01:00
editorconfig applied
This commit is contained in:
6
allianceauth/thirdparty/navhelper/tests.py
vendored
6
allianceauth/thirdparty/navhelper/tests.py
vendored
@@ -34,15 +34,13 @@ class NavhelperTemplateTagTests(TestCase):
|
||||
def test_navactive(self):
|
||||
self._navactive_common('active', '')
|
||||
|
||||
with self.settings(NAVHELPER_ACTIVE_CLASS='my-active-class',
|
||||
NAVHELPER_NOT_ACTIVE_CLASS='my-not-active-class'):
|
||||
with self.settings(NAVHELPER_ACTIVE_CLASS='my-active-class', NAVHELPER_NOT_ACTIVE_CLASS='my-not-active-class'):
|
||||
self._navactive_common('my-active-class', 'my-not-active-class')
|
||||
|
||||
def test_renavactive(self):
|
||||
self._renavactive_common('active', '')
|
||||
|
||||
with self.settings(NAVHELPER_ACTIVE_CLASS='my-active-class',
|
||||
NAVHELPER_NOT_ACTIVE_CLASS='my-not-active-class'):
|
||||
with self.settings(NAVHELPER_ACTIVE_CLASS='my-active-class', NAVHELPER_NOT_ACTIVE_CLASS='my-not-active-class'):
|
||||
self._renavactive_common('my-active-class', 'my-not-active-class')
|
||||
|
||||
def _navactive_common(self, active, not_active):
|
||||
|
||||
Reference in New Issue
Block a user