Django unit testing failures related to authentication settings -
In Django, when I run "manage.py test", I get very high authentication failures. Some examples:
failed: test_password_change_succeeds - assurance error 200! = 302 Fail: Provides logout default templates without next page - AssertionError 200! Failure: form.non_field_errors () Expected: [You found this account inactive.]]: [U ' Please enter the correct username and password ... ']
I have configured settings.py to accept authentication from Django Apache2. In the settings, 'code_middleWARE_CLASSES' contains the 'AuthenticationMiddleware' and 'RemoteUserMiddleware', and 'RemoteUserBackend' is included in AUTHENTICATION_BACKENDS
.
How can I understand the problem here?
Update 2 I cleared test errors by commenting about setting of AUTHENTICATION_BACKENDS. Now I have to think about the certification stage in my test environment, but at least I have approved this problem.
The first update contained the references to a question that I have removed.
Comments
Post a Comment