#24315: Using UUIDField for id of custom User model prevents password reset 
confirm
view
---------------------------------+-------------------------------------
     Reporter:  jamesbeith       |                    Owner:  timgraham
         Type:  Bug              |                   Status:  new
    Component:  contrib.auth     |                  Version:  1.8alpha1
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-------------------------------------
Changes (by jamesbeith):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 The above test does fail for me. I did the following:

 - Create virtual Python environment on my OS X 10.10.2 machine
     - Python 3.4.2
     - pip 1.5.6
     - setuptools 3.6
 - Cloned Django master branch
 - Applied the above patch `24315-test.diff `
 - Ran the test `PYTHONPATH=..:$PYTHONPATH ./runtests.py
 auth_tests.test_views`

 {{{
 Testing against Django installed in '/Users/James/Desktop/uuid-password-
 reset/django'
 Creating test database for alias 'default'...
 Creating test database for alias 'other'...
 ..............F...................................................
 ======================================================================
 FAIL: test_confirm_valid_custom_user
 (auth_tests.test_views.CustomUserPasswordResetTest)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Users/James/Desktop/uuid-password-
 reset/tests/auth_tests/test_views.py", line 356, in
 test_confirm_valid_custom_user
     self.assertContains(response, "Please enter your new password")
   File "/Users/James/Desktop/uuid-password-
 reset/django/test/testcases.py", line 357, in assertContains
     msg_prefix + "Couldn't find %s in response" % text_repr)
 AssertionError: False is not true : Couldn't find 'Please enter your new
 password' in response

 ----------------------------------------------------------------------
 Ran 66 tests in 1.771s

 FAILED (failures=1)
 Destroying test database for alias 'default'...
 Destroying test database for alias 'other'...
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24315#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.fd96e6fba229a9750c158fcd4bf8e5be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to