summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2012-08-15Always close files in the file_storage tests.Alex Gaynor
2012-08-15[py3] Fixed test_client_regress testsClaude Paroz
2012-08-15Converted the modeladmin tests to run on python 2 and 3.Alex Gaynor
2012-08-15Fixed usage of several deprecated aliases in unittest.Alex Gaynor
2012-08-15Explicitly close files in the staticfiles tests.Alex Gaynor
2012-08-15[py3] Fixed jsi18n test.Aymeric Augustin
Also refactored said test to avoid leaking state (ie. active translation) when an error occurs.
2012-08-15[py3] Fixed uses of __metaclass__ in tests.Aymeric Augustin
2012-08-14[py3] Fixed conditional_processing testsClaude Paroz
2012-08-14[py3] Fixed file_uploads testsClaude Paroz
2012-08-14Don't swallow AttributeError in core.urlresolvers.get_callable.Florian Apolloner
2012-08-14[py3] Fixed serializers testsClaude Paroz
2012-08-14[py3] Fixed staticfiles testsClaude Paroz
2012-08-14[py3] Fixed admin_views testsClaude Paroz
Also changed several occurrences of 'request' to 'response'.
2012-08-14[py3] Fixed admin_custom_urls tests.Aymeric Augustin
2012-08-14[py3] Fixed comparison of list and range()Anssi Kääriäinen
A test compared list directly against a range(). This is py3 incompatible. Fixed by using list(range()).
2012-08-14[py3] Fixed invalid use of dict.items()Anssi Kääriäinen
An ordering test had two problems related to dict.items() usage: - It assumed the order of the dict was non-randomized - It indexed to the dict.items() which is py3 incompatible. I fixed the test by using dict['rank'] directly, where rank is the column tested on the values queryset.
2012-08-14[py3] Ensured the template tests run.Aymeric Augustin
2012-08-14[py3] Compared response.content with bytes.Aymeric Augustin
2012-08-14[py3] Ported django.http according to PEP 3333.Aymeric Augustin
Perfomed some style cleanup while I was in the area.
2012-08-13[py3] Fixed encoding issues in cache key generationClaude Paroz
2012-08-13[py3] Made csrf context processor return UnicodeClaude Paroz
2012-08-13[py3] Fixed admin_scripts testsClaude Paroz
2012-08-13[py3] Removed filename encoding in file_uploads testClaude Paroz
2012-08-12Fixed #18306 -- Made deferred models issue update_fields on saveAndrei Antoukh
Deferred models now automatically update only the fields which are loaded from the db (with .only() or .defer()). In addition, any field set manually after the load is updated on save.
2012-08-12Fixed #13844 -- Avoid converting unknown db values to floatAnssi Kääriäinen
This patch removes an unconditional float(value) conversion from db backend default convert_values() method. This can cause problems when aggregating over character fields for example. In addition, Oracle and SQLite already return the bare value from their convert_values(). In the long term the converting should be done by fields, and the fields should then call database backend specific converters when needed. The current setup is inflexible for 3rd party fields. Thanks to Merlijn van Deen for the original patch.
2012-08-12[py3] Made exception examination py3-compatible.Karen Tracey
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-12[py3] Replaced some __str__ methods by __unicode__Aymeric Augustin
These methods actually return unicode.
2012-08-11Fixed #18739 -- witdthratio behavior on None argsKaren Tracey
Made behavior given None consistent with how non-numerics were handled. Thanks to ja.geb@me.com for the report.
2012-08-11Decorated some tests that require tz support.Karen Tracey
This allows the test suite to run without errors on Windows.
2012-08-11[py3] Various minor syntax fixes in the test suiteClaude Paroz
2012-08-11[py3] Used six.StringIO to simulate stdout buffer in testsClaude Paroz
2012-08-11[py3] Used BytesIO to test request streamsClaude Paroz
2012-08-10[py3] Made signing infrastructure pass tests with Python 3Claude Paroz
2012-08-09[py3] Fixed mail tests with Python 3Claude Paroz
2012-08-08[py3] Fixed compilemessages testsClaude Paroz
2012-08-08Switched to using the standard method for comparing querysets in teh templates.Alex Gaynor
2012-08-08[py3] Used compatible imports of StringIO.Aymeric Augustin
2012-08-07[py3] Ported django.utils.functional.Aymeric Augustin
2012-08-07[py3] Ported django.utils.decorators.Aymeric Augustin
2012-08-07[py3] Ported django.utils.crypto.Aymeric Augustin
2012-08-07[py3] Ported django.utils.baseconv.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-08-06Fixed #18724 -- Fixed IntegerField validation with value 0Brendan MacDonell
2012-08-04Fixed #5524 -- Do not remove cleaned_data when a form fails validationClaude Paroz
cleaned_data is no longer deleted when form validation fails but only contains the data that did validate. Thanks to the various contributors to this patch (see ticket).
2012-08-04Fixed #18700 -- Added URL reversal for i18n set_language view.Simon Meers
2012-08-03[py3] Removed uses of sys.maxint under Python 3.Aymeric Augustin
Also fixed #18706: improved exceptions raised by int_to_base36.
2012-07-30Fixed a security issue in http redirects. Disclosure and new release ↵Florian Apolloner
forthcoming.
2012-07-25[py3] Updated dict-like data structures for Python 3.Aymeric Augustin
The keys/items/values methods return iterators in Python 3, and the iterkeys/items/values methods don't exist in Python 3. The behavior under Python 2 is unchanged.