Revision ea2bea47

b/aai/middleware.py
85 85
                response['X-CDN-Management-Url'] = ""
86 86
            return response
87 87

  
88
        if settings.TESTING:
88
        if settings.TEST:
89 89
            if 'TEST-AAI' in request.META:
90 90
                return HttpResponseRedirect(settings.SHIBBOLETH_HOST)
91 91
        else:
b/settings.py.dist
178 178
#Number of hours during which a user token is active
179 179
AUTH_TOKEN_DURATION = 24
180 180

  
181
#Controls whether the system is running tests
182
#Set as reading the DEBUG variable is not reliable (Django changes its value
183
# unpredictably)
184
TESTING = True

Also available in: Unified diff