#12393: testGenericInlineFormset fails on Postgres
---------------------------+------------------------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
The testGenericInlineFormset test added in r11885 is failing for me on
PosgreSQL:
{{{
======================================================================
FAIL: testGenericInlineFormset
(regressiontests.generic_inline_admin.tests.GenericAdminViewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\u\kmt\django\trunk\tests\regressiontests\generic_inline_admin\tests.py",
line 92, in testGenericInlineFormset
self.assertEquals(formset.forms[0].as_p(), '<p><label for
="id_generic_inline_admin-media-content_type-object_id-0-url">Url:</label>
<input id="id_generic_inline_admin-media-content_type-object_id-0-url"
type="text" name="generic_inline_admin-media-content_type-object_id-0-url"
value="http://example.com/podcast.mp3" maxlength="200" /><input
type="hidden" name="generic_inline_admin-media-content_type-
object_id-0-id" value="1" id="id_generic_inline_admin-media-content_type-
object_id-0-id" /></p>')
AssertionError: u'<p><label for="id_generic_inline_admin-media-
content_type-object_id-0-url">Url:</label> <input id
="id_generic_inline_admin-media-content_type-object_id-0-url" type="text"
name="generic_inline_admin-media-content_type-object_id-0-url"
value="http://example.com/podcast.mp3" maxlength="200" /><input
type="hidden" name="generic_inline_admin-media-content_type-
object_id-0-id" value="9" id="id_generic_inline_admin-media-content_type-
object_id-0-id" /></p>'
!= '<p><label for="id_generic_inline_admin-media-
content_type-object_id-0-url">Url:</label> <input id
="id_generic_inline_admin-media-content_type-object_id-0-url" type="text"
name="generic_inline_admin-media-content_type-object_id-0-url"
value="http://example.com/podcast.mp3" maxlength="200" /><input
type="hidden" name="generic_inline_admin-media-content_type-
object_id-0-id" value="1" id="id_generic_inline_admin-media-content_type-
object_id-0-id" /></p>'
----------------------------------------------------------------------
Ran 10 tests in 4.828s
FAILED (failures=1)
Destroying test database...
}}}
(Slightly reformatted to line up the mismatch.) Test is expecting
`value="9"` but getting `value="1"`.
--
Ticket URL: <http://code.djangoproject.com/ticket/12393>
Django <http://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.