On 1/8/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
Hi,
after I've updated to svn release 4293, django's test suite fails
with this message, using mysql 4.1.12 and python 2.4:
======================================================================
FAIL: Doctest: modeltests.model_forms.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mir/lib/python/django/test/doctest.py", line 2156,
in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
modeltests.model_forms.models.__test__.API_TESTS
File
"/home/mir/src/django/trunk/tests/modeltests/model_forms/models.py",
line unknown line number, in API_TESTS
----------------------------------------------------------------------
File
"/home/mir/src/django/trunk/tests/modeltests/model_forms/models.py",
line ?, in modeltests.model_forms.models.__test__.API_TESTS
Failed example:
f.clean_data
Exception raised:
Traceback (most recent call last):
File "/home/mir/lib/python/django/test/doctest.py", line
1243, in __run
compileflags, 1) in test.globs
File "<doctest
modeltests.model_forms.models.__test__.API_TESTS[32]>", line 1, in ?
f.clean_data
AttributeError: 'CategoryForm' object has no attribute
'clean_data'
----------------------------------------------------------------------
As of changeset 4284 [1], the behavior of clean_data was altered. It
looks like the tests in tests/modeltests/model_forms/models.py were
not updated to reflect that change. Specifically, I see no calls to
is_valid() which would explain the above error.
[1]: http://code.djangoproject.com/changeset/4284
--
----
Waylan Limberg
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---