summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-09-25Fixed #20364 -- Changed urlize regexes to include quotation marks as punctation.Giles Richard Greenway
Thanks to EmilStenstrom for raising this, and to Chris Piwoński for all of the fixes and most of the tests.
2013-09-25Fixed #17671 - Cursors are now context managers.Michael Manfre
2013-09-25Fixed #3871 -- Custom managers when traversing reverse relations.Loic Bistuer
2013-09-25Fixed #21126 -- QuerySet value conversion failureAnssi Kääriäinen
A .annotate().select_related() query resulted in misaligned rows vs columns for compiler.resolve_columns() method. Report & patch by Michael Manfre.
2013-09-25Remove most errors when running migration tests twiceAndrew Godwin
2013-09-25Allow callables as the argument to RunPythonAndrew Godwin
2013-09-25Add RunPython migration operation and testsAndrew Godwin
2013-09-25Add equality support for Project/ModelStateAndrew Godwin
2013-09-24Fixed #18333 - Quoted annotated column namesMichael Manfre
2013-09-24Fixed #21151 -- Bad cleanup in schema M2M repoint testAndrew Godwin
2013-09-24Isolated select_for_update tests a bit more.Florian Apolloner
This change prevents including the multiple_database test models without duplicating the router code (we probably should do this at one point). Refs #21148
2013-09-23Fixed test suite bisection on Python 3.Simon Charette
Thanks to @marfire for spotting this.
2013-09-23Fixed #21001 -- Added a regression test for empty string exclusion on Oracle.Simon Charette
The issue was present in 1.4.x but has been reported to be fixed in master. Thanks to @timgraham for the patch.
2013-09-23Fixed #14028 - Added validation for clashing db_columns.Helen ST
Thanks akaariai for the suggestion.
2013-09-22Stopped a test from executing queries at the module level.Florian Apolloner
Currently module level queries are executed against the real database (specified in NAME) instead of the test database; since it is to late to fix this for 1.6, we at least ensures stable builds. Refs #21443.
2013-09-22Translated a test to English for consistency.Aymeric Augustin
Also fixed a typo.
2013-09-22Fixed "Address already in use" from liveserver.Florian Apolloner
Our WSGIServer rewrapped the socket errors from server_bind into WSGIServerExceptions, which is used later on to provide nicer error messages in runserver and used by the liveserver to see if the port is already in use. But wrapping server_bind isn't enough since it only binds to the socket, socket.listen (which is called from server_activate) could also raise "Address already in use". Instead of overriding server_activate too I chose to just catch socket errors, which seems to make more sense anyways and should be more robust against changes in wsgiref.
2013-09-22Removed a few trailing backslashes.Aymeric Augustin
We have always been at war with trailing backslashes.
2013-09-22Partial revert of 165f44aa.Aymeric Augustin
That commit didn't always improve readability. See discussion on django-developers for details.
2013-09-21Fixed #21074 -- Added tests for localized datetime fields.Aymeric Augustin
Fields must render values in the current time zone. This commit only contains tests because this ticket was just a symptom of a regression from #18777 that was fixed separately.
2013-09-21Ensured that explicit time zones are rejected by forms.Aymeric Augustin
Refs #19371.
2013-09-20Fixed #20702 -- Deprecated get_formsets in favor of get_formsets_with_inlines.tschilling
Thanks stanislas.guerra at gmail.com for the report.
2013-09-19Fixed #9532 -- Added min_num and validate_min on formsets.yokomizor
Thanks gsf for the suggestion.
2013-09-19Fixed #21125 -- Removed support for cache URI syntaxCurtis Maloney
2013-09-19Fixed #7557 -- Added type checking to Variable initialization.Tim Graham
Thanks tobias for the suggestion and boblefrag and saz for work on the patch.
2013-09-19Fixed typo in exception message; refs #19414Tim Graham
Thanks Alexey Boriskin for the report.
2013-09-18Fixed #19414 -- Added admin registration decoratorBrian Holdefehr
Thanks stavros for the suggestion.
2013-09-18Fixed #21098 -- Applied sensitive_post_parameters to MultiValueDictTim Graham
Thanks simonpercivall for the report and bmispelon for the review.
2013-09-18Fixed #21118 -- Isolated a test that uses the database.Tim Graham
Thanks rmboggs for the report.
2013-09-18Fixed #4278 -- Added a dirs parameter to a few functions to override ↵Berker Peksag
TEMPLATE_DIRS. * django.template.loader.get_template() * django.template.loader.select_template() * django.shortcuts.render() * django.shortcuts.render_to_response() Thanks amcnabb for the suggestion.
2013-09-18Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.Tim Graham
Thanks margieroginski for the suggestion.
2013-09-18Fixed #12568 -- no error when accessing custom field's descriptorAnssi Kääriäinen
The SubfieldBase's descriptor caused an AttributeError when accessed from the class. Introspection didn't like that. Patch by Trac alias supervacuo.
2013-09-17Fixed #21115 -- Fixed NameError in migrate --list commandMarkus Holtermann
2013-09-17Fixed #21114 -- Migrations must not have a dependency to themselves.Markus Holtermann
2013-09-16Fixed test failures introduced in previous commit.Tim Graham
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-09-15Fixed a timing edge case in the RelatedFieldWidgetSeleniumFirefoxTests.Florian Apolloner
By settings an implicit wait timeout for the find_* methods we can wait till the javascript code add the new option to the DOM. See http://ci.djangoproject.com/job/Django/database=mysql_gis,python=python3.3/3174/testReport/junit/admin_widgets.tests/RelatedFieldWidgetSeleniumFirefoxTests/test_foreign_key_using_to_field/ Stacktrace: Traceback (most recent call last): File "/var/lib/jenkins/jobs/Django/workspace/database/mysql_gis/python/python3.3/tests/admin_widgets/tests.py", line 1060, in test_foreign_key_using_to_field self.assertEqual(username_value, new_option.get_attribute('value')) AssertionError: 'newuser' != 'testser' - newuser + testser
2013-09-14Revert "Fixed #12288 -- Validated that app names in INSTALLED_APPS are unique"Tim Graham
This reverts commit c1ec08998d1b690855d5e69a1f4d9d2f01d44ae6. There are backwards compatability concerns with this.
2013-09-14Added tests for double-pickling a QuerySetAnssi Kääriäinen
Refs #21102.
2013-09-14Fixed #21097 - Added DatabaseFeature.can_introspect_autofieldMichael Manfre
2013-09-13Fixed #21060 -- Refactored admin's autodiscover method to make it reusable.Juan Catalano
We want to be able to use it for instance for discovering `tasks.py` modules inside the INSTALLED_APPS. This commit therefore moves the logic to `autodiscover_modules` method in django.utils.module_loading.
2013-09-13Fixed #12288 -- Validated that app names in INSTALLED_APPS are uniquee0ne
2013-09-12Fixed #21099 - Skip DistinctOnTests unless backend can_distinct_on_fieldsMichael Manfre
2013-09-11Fixed #21090 -- Allowed backends to provide dotted field path to inspectdb.Michael Manfre
2013-09-11Fixed #21089 -- Allow TransactionTestcase subclasses to define an empty list ↵Baptiste Mispelon
of fixtures. Thanks to lgs for the report and initial patch.
2013-09-11Fixed #21056 -- AdminSite.app_index no longer blindly accepts any ↵Keryn Knight
app-labelish input.
2013-09-10Prevented arbitrary file inclusion with {% ssi %} tag and relative paths.Tim Graham
Thanks Rainer Koirikivi for the report and draft patch. This is a security fix; disclosure to follow shortly.
2013-09-10Fixed #19298 -- Added MultiValueField.__deepcopy__Tim Graham
Thanks nick.phillips at otago.ac.nz for the report.
2013-09-10Fixed test errors from 053de6131af83c63ec17d38578889c71de913d24 on py3.2.Florian Apolloner
2013-09-10Fixed #5749 -- Added field_name as a key in the _html_output dicte0ne
Thanks SmileyChris for the suggestion.