#19050: auth.ModWsgiHandlerTestCase fails when User model is swapped
-------------------------------+--------------------
     Reporter:  ivan_virabyan  |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  contrib.auth   |    Version:  master
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  1
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 Assuming  {{{ AUTH_USER_MODEL }}} is set, running this test fails:



 {{{
 $python manage.py test auth.ModWsgiHandlerTestCase.test_check_password

 ERROR: test_check_password
 (django.contrib.auth.tests.handlers.ModWsgiHandlerTestCase)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/Users/ivan/Projects/django/django/contrib/auth/tests/handlers.py", line
 14, in setUp
     user1 = User.objects.create_user('test', '[email protected]', 'test')
 AttributeError: type object 'User' has no attribute 'objects'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19050>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to