#16183: Incorrect test in contrib.auth silently passes
------------------+------------------------------
 Reporter:  desh  |          Owner:  nobody
     Type:  Bug   |         Status:  new
Milestone:        |      Component:  contrib.auth
  Version:  1.3   |       Severity:  Normal
 Keywords:        |   Triage Stage:  Unreviewed
Has patch:  1     |  Easy pickings:  0
    UI/UX:  0     |
------------------+------------------------------
 There are a test case:
 [source:django/trunk/django/contrib/auth/tests/permissions.py@16341#L36
 auth.TestAuthPermissions]. It checks that the ordering of autogenerated
 permissions is the same (ticket [ticket:14731]) by creating permissions
 and trying to load fixture, then checking that 'loaddata' passed with
 clean stderr.

 The problem is that this fixture ("test_permissions.json") has been
 checked in with different name ("permissionstestdata.json"). The bigger
 problem is that "loaddata test_permissions.json" yields "No fixtures
 found." in stdout, leaving stderr clean. So the test was here and passed
 without an error since checkin.

 Attaching patch that fixes fixture name and the fixture itself (as it
 contains contenttype for legacy auth.Message model which breaks the test).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16183>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to