summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-04-12Modified model_fields for unittest2 discovery.Preston Timmons
2013-04-12Modified generic_views for unittest2 discovery.Preston Timmons
2013-04-12Modified comment_tests for unittest2 discovery.Preston Timmons
2013-04-12Modified test_client_override to work with unittest2 discovery.Preston Timmons
2013-04-12Modified test_utils to work with unittest2 discovery.Preston Timmons
2013-04-12Modified forms_tests to work with unittest2 discovery.Preston Timmons
2013-04-12Fixed #20237 (again) Allowed binary parameter to assertContainsClaude Paroz
2013-04-12Fixed #20211: Document backwards-incompatible change in BoundField.label_tagBaptiste Mispelon
Also cleaned up label escaping and consolidated the test suite regarding label_tag.
2013-04-11Fixed #20237 -- Reenabled assertContains with binary parameterClaude Paroz
Thanks Baptiste Mispelon for the review.
2013-04-10Fixed #20231 -- Don't use allow_lazy on smart_splitBaptiste Mispelon
2013-04-10Made usage of assertTemplateUsed in admin_views testsClaude Paroz
Thanks Baptiste Mispelon for the suggestion.
2013-04-08Fix admin_views tests after commit 3be368c73e.Baptiste Mispelon
2013-04-08Fixed #14019 -- Initialize `SQLInsertCompiler.return_id` attribute.Tobias McNulty
2013-04-07Fix #15126: Better error message when passing invalid options to ModelForm.Meta.Baptiste Mispelon
2013-04-05Fixed #20207 -- Handle ManyToManyField with a unicode name correctly.Simon Charette
2013-04-03Fixed #20038 -- Better error message for host validation.Baptiste Mispelon
2013-04-02Move last remaining tests out of models.py files; prep for test discovery.Preston Timmons
2013-04-01Relaxed time frame check in test_strip_tagsClaude Paroz
2013-04-01Fixed #20169 -- Ensured that the WSGI request's path is correctly based on ↵Julien Phalip
the `SCRIPT_NAME` environment parameter or the `FORCE_SCRIPT_NAME` setting, regardless of whether or not those have a trailing slash. Thanks to bmispelon for the review.
2013-04-01Fixed #16737 -- Support non-ascii column names in inspectdbClaude Paroz
Thanks moof at metamoof.net for the report.
2013-04-01Imported unittest from django.utils in util_testsClaude Paroz
Without this, the 'new' assertion methods are not present with Python 2.6.
2013-04-01Fixed #5014 -- Guessed max_digits and decimal_places for SQLiteClaude Paroz
Decimal is treated as float on SQLite, hence inspectdb can only guess max_digits and decimal_places arguments.
2013-04-01Fixed getting max_digits for MySQL decimal fieldsClaude Paroz
Refs #5014.
2013-04-01Added more tests for strip_tags utilityClaude Paroz
Refs #19237.
2013-04-01Fixed #20172 -- Ensured urlize supports IPv4/IPv6 addressesClaude Paroz
Thanks Marc Aymerich for the report and the initial patch.
2013-03-31Fixed #20167 -- Preserve the traceback of `ImportError`s in `import_by_path`.Joe Friedl
Thanks @carljm for the review.
2013-03-31Fixed #19220 -- Prevented decimals to be displayed in scientific notationClaude Paroz
Thanks nebstrebor for the report and antofik for the patch.
2013-03-30Fixed #20130 -- Regression in {% cache %} template tag.Baptiste Mispelon
2013-03-30Fixed #19998 -- Fixed --ignorenonexistent support for XML based fixtures.Christoph Sieghart
2013-03-29Fix #20158: invalid code in queryset_pickle test models.Baptiste Mispelon
2013-03-28Fixed #19954 -- Fixed MySQL _last_executed decodingClaude Paroz
Queries can contain binary data undecodable with utf-8. In this case, using the 'replace' errors mode when decoding seems like an acceptable representation of the query. Thanks Marcel Ryser for the report.
2013-03-27Correctly restore warning capture after logging tests.Jacob Kaplan-Moss
This is a fix to the wrong behavior that 15c3906eeb introduced.
2013-03-27Fixed logging-related test failure introduced by e79b857.Jacob Kaplan-Moss
2013-03-27Merge remote-tracking branch 'ptone/18985-fix'Jacob Kaplan-Moss
2013-03-26Added regression test for custom SQL containing percentsClaude Paroz
Refs #3485.
2013-03-26Fixed #20091 -- Oracle null promotion for empty stringsAnssi Kääriäinen
2013-03-25Fixed #20121 -- Removed LogEntry.get_admin_url's hard-coded path.Adam Wentz
Updated LogEntry.get_admin_url to use 'reverse' instead of a hard-coded path.
2013-03-25Removed forced typecasting of help_text/label Field argumentsClaude Paroz
In any case, setting those variables to non-ascii utf-8 bytestrings is now considered a programming error.
2013-03-24Fixed #18985 -- ensure module level deprecations are displayedPreston Holmes
Also don't compete with -W CLI option. Thanks to Aymeric Augustin for the catch, and Claude Paroz for the patch.
2013-03-25Fixed #19541 -- Fixed BaseHandler to enable reversing URLs in response ↵Loic Bistuer
middlewares and streamed responses with respect to per-request urlconf.
2013-03-24Fixed 19385 -- Added ORM support for multicolumn joinsAnssi Kääriäinen
This patch iproved two major parts in Django. First, the fields.related was refactored. The main addition there was ForeignObject. Second, the ORM now handles multicolumn joins in most cases, though there are still cases that do not work correcly (split_exclude() for example). In addition there were extesive changes to how GenericRelation works. Before it was a fake m2m field, now it is a pure virtual fields and is based on ForeignObject. There is still much room for improvement. The related fields code is still somewhat confusing, and how fields are represented in model._meta should also be revisited. This patch was written mostly by Jeremy Tillman with some final polish by the committer.
2013-03-24Fixed test failures introduced in e16c48e001.Aymeric Augustin
2013-03-24Fixed #15124 -- Changed the default for BooleanField.Aymeric Augustin
Thanks to the many contributors who updated and improved the patch over the life of this ticket.
2013-03-23Fixed #9055 -- Standardized behaviour of parameter escaping in db cursorsClaude Paroz
Previously, depending on the database backend or the cursor type, you'd need to double the percent signs in the query before passing it to cursor.execute. Now cursor.execute consistently need percent doubling whenever params argument is not None (placeholder substitution will happen). Thanks Thomas Güttler for the report and Walter Doekes for his work on the patch.
2013-03-22Fixed #20108 -- Fixed filepath_to_uri decoding errorClaude Paroz
This was a regression due to unicode_literals usage. Thanks Ivan Virabyan for the report and the initial patch.
2013-03-22Fixed #20094 - Be more careful when checking for IteratorMarc Tamlyn
Python 2.6 has some different behaviour when checking isinstance(foo, collections.Iterator).
2013-03-21Fixed #20084 -- Provided option to validate formset max_num on server.Andrew Gorcester
This is provided as a new "validate_max" formset_factory option defaulting to False, since the non-validating behavior of max_num is longstanding, and there is certainly code relying on it. (In fact, even the Django admin relies on it for the case where there are more existing inlines than the given max_num). It may be that at some point we want to deprecate validate_max=False and eventually remove the option, but this commit takes no steps in that direction. This also fixes the DoS-prevention absolute_max enforcement so that it causes a form validation error rather than an IndexError, and ensures that absolute_max is always 1000 more than max_num, to prevent surprising changes in behavior with max_num close to absolute_max. Lastly, this commit fixes the previous inconsistency between a regular formset and a model formset in the precedence of max_num and initial data. Previously in a regular formset, if the provided initial data was longer than max_num, it was truncated; in a model formset, all initial forms would be displayed regardless of max_num. Now regular formsets are the same as model formsets; all initial forms are displayed, even if more than max_num. (But if validate_max is True, submitting these forms will result in a "too many forms" validation error!) This combination of behaviors was chosen to keep the max_num validation simple and consistent, and avoid silent data loss due to truncation of initial data. Thanks to Preston for discussion of the design choices.
2013-03-20Fixed #18839 - Field.__init__() now calls super().Carny Cheng
2013-03-20Fixed #18972 -- Refactored bundled wsgi server's chunking algorithm.Matthew Wood
Thanks to amosonn at yahoo.com for the report, @doda for the initial patch and @datagrok for the revamped logic and test case.
2013-03-21Added tests for already fixed #20101Anssi Kääriäinen
The ticket dealt with a case where one query had .exclude() that produced a subquery, the other query had a join to the same model that was subqueried in the first query. This was already fixed in master, so only test added.