We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562e072 commit baf1e6aCopy full SHA for baf1e6a
tests/utils.py
@@ -1,5 +1,6 @@
1
import os
2
3
+import django
4
from django.conf import settings
5
from django.utils import six
6
@@ -17,6 +18,11 @@ def _(path):
17
18
19
class pipeline_settings(override_settings):
20
def __init__(self, **kwargs):
21
+ if django.VERSION[:2] >= (1, 10):
22
+ # Django 1.10's override_settings inherits from TestContextDecorator
23
+ # and its __init__ method calls its superclass' __init__ method too,
24
+ # so we must do the same.
25
+ super(pipeline_settings, self).__init__()
26
self.options = {'PIPELINE': kwargs}
27
28
0 commit comments