8000 [pre-commit.ci] auto fixes from pre-commit.com hooks · django-haystack/django-haystack@dabd887 · GitHub
[go: up one dir, main page]

Skip to content

Commit dabd887

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 54c585f commit dabd887

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

haystack/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class SpatialError(HaystackError):
4848

4949
class StatsError(HaystackError):
5050
"Raised when incorrect arguments have been provided for stats"
51+
5152
pass
5253

5354

test_haystack/test_django_config_detection.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ def testDefaultAppConfigIsDefined_whenDjangoVersionIsLessThan3_2(self):
1616
has_default_appconfig_attr = hasattr(haystack, "default_app_config")
1717
self.assertTrue(has_default_appconfig_attr)
1818

19-
@unittest.skipIf(
20-
django.VERSION < (3, 2),
21-
"default_app_config should be used in versions prior to django 3.2.",
22-
)
2319
def testDefaultAppConfigIsDefined_whenDjangoVersionIsMoreThan3_2(self):
2420
has_default_appconfig_attr = hasattr(haystack, "default_app_config")
2521
self.assertFalse(has_default_appconfig_attr)

0 commit comments

Comments
 (0)
0