summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-02-09Removed unnecessary parentheses in model check messages.Tim Graham
2015-02-09Fixed #24249 -- Improved field shadowing validation in model multi-inheritance.Aron Podrigal
2015-02-08Replaced hardcoded URLs in admin_* testsClaude Paroz
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review.
2015-02-08Added check_apps_ready() to Apps.get_containing_app_config()Tim Graham
2015-02-08Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertionVarun Sharma
Report and original patch by Kay Cha.
2015-02-06Tested DecimalField with scientific notationClaude Paroz
Refs #15775.
2015-02-06Fixed E265 comment styleCollin Anderson
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-06Added a test for refs #24279Anssi Kääriäinen
This issue was fixed in afe0bb7b13bb8dc4370f32225238012c873b0ee3.
2015-02-06Added trailing comma.Aymeric Augustin
Sorry, I couldn't stand the inconsistency between the two databases anymore.
2015-02-06Hid Django installation message when verbosity is 0.Aymeric Augustin
This message was introduced to help people figure out quickly when they aren't running the tests against the copy of Django they're editing. There's no reason to display it when verbosity is set to 0. It defaults to 1.
2015-02-05Removed old import aliases.Tim Graham
2015-02-05Added UUIDField.deconstruct()Tim Graham
2015-02-06Fixed small regression caused by 0204714b0bdf10d7558ee106de9a718407f3ec5aMarkus Holtermann
Since 1.7 models need to declare an explicit app_label if they are not in an application in INSTALLED_APPS or were imported before their application was loaded.
2015-02-05Cleaned up schema testsMarkus Holtermann
Thanks Tim Graham for the review.
2015-02-05Fixed #24265 -- Preserved template backend loading exceptions.Aymeric Augustin
If importing or initializing a template backend fails, attempting to access this template backend again must raise the same exception.
2015-02-05Fixed #24273 -- Allowed copying RequestContext more than once.Aymeric Augustin
Thanks Collin Anderson for the report.
2015-02-05Fixed #6707 -- Added RelatedManager.set() and made descriptors' __set__ use it.Loic Bistuer
Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
2015-02-04Fixed #24242 -- Improved efficiency of utils.text.compress_sequence()Matthew Somerville
The function no longer flushes zfile after each write as doing so can lead to the gzipped streamed content being larger than the original content; each flush adds a 5/6 byte type 0 block. Removing this means buf.read() may return nothing, so only yield if that has some data. Testing shows without the flush() the buffer is being flushed every 17k or so and compresses the same as if it had been done as a whole string.
2015-02-04Fixed #24197 -- Added clearing of staticfiles caches on settings changes ↵mlavin
during tests Cleared caching in staticfiles_storage and get_finder when relevant settings are changed.
2015-02-04Cleaned up formatting in template_tests.test_custom.Preston Timmons
2015-02-04Removed EverythingNodeAnssi Kääriäinen
At the same time, made sure that empty nodes in where clause match everything.
2015-02-04Fixed #14497 -- Improved admin widget for "read only" FileFieldsRiccardo Magliocchetti
Based on patch by Adam J Forster, Paul Collins, and Julien.
2015-02-04Fixed typos of "select_related" in docs and tests.Josh Schneier
2015-02-03Fixed #15321 -- Honored ancestors unique checks.Aron Podrigal
Thanks to Tim for the review.
2015-02-03Removed a useless check in runtests.pyTim Graham
Added in 3e97535907baa7b57c9bf322871ef6243e2045a9, this check appears to never be triggered today.
2015-02-03Refactored tests that rely on an ImportError for Python 3.5 compatibilityTim Graham
A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559
2015-02-03Fixed #24266 -- Changed get_parent_list to return a list ordered by MRO.Simon Charette
Thanks to Aron Podrigal for the initial patch and Tim for the review.
2015-02-03Reverted "Fixed #24146 -- Fixed a missing fields regression in admin checks."Tim Graham
This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d. A new solution is forthcoming.
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-02-03Fixed #24252 -- Forced lazy __str__ to utf-8 on Python 2Claude Paroz
Thanks Stanislas Guerra for the report and Tomas Ehrlich for the review.
2015-02-03Fixed #24240 -- Allowed GZipping a Unicode StreamingHttpResponseMatthew Somerville
make_bytes() assumed that if the Content-Encoding header is set, then everything had already been dealt with bytes-wise, but in a streaming situation this was not necessarily the case. make_bytes() is only called when necessary when working with a StreamingHttpResponse iterable, but by that point the middleware has added the Content-Encoding header and thus make_bytes() tried to call bytes(value) (and dies). If it had been a normal HttpResponse, make_bytes() would have been called when the content was set, well before the middleware set the Content-Encoding header. This commit removes the special casing when Content-Encoding is set, allowing unicode strings to be encoded during the iteration before they are e.g. gzipped. This behaviour was added a long time ago for #4969 and it doesn't appear to be necessary any more, as everything is correctly made into bytes at the appropriate places. Two new tests, to show that supplying non-ASCII characters to a StreamingHttpResponse works fine normally, and when passed through the GZip middleware (the latter dies without the change to make_bytes()). Removes the test with a nonsense Content-Encoding and Unicode input - if this were to happen, it can still be encoded as bytes fine.
2015-02-03Fixed #18651 -- Enabled optional assignments for simple_tag().Preston Timmons
2015-02-03Fixed #23617 -- Added get_pk_value_on_save()Anssi Kääriäinen
The method is mainly intended for use with UUIDField. For UUIDField we want to call the field's default even when primary key value is explicitly set to None to match the behavior of AutoField. Thanks to Marc Tamlyn and Tim Graham for review.
2015-02-03Fixed #24263 -- Prevented extra queries on BaseDateDetailView with a custom ↵Tim Graham
queryset. Thanks jekka-ua for the report and patch.
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.
2015-01-31Fixed expressions test on Python 3.5; refs #23763.Tim Graham
2015-01-31Fixed #24245 -- Added introspection for database defaults.Tim Graham
Needed for tests for migrations handling of database defaults.
2015-01-30Reverted "Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows."Tim Graham
This reverts commit da79ccca1d34f427952cce4555e598a700adb8de. This optimized the unsuccessful case at the expense of the successful one.
2015-01-30Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().Loic Bistuer
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-29Fixed #24145 -- Added PUT & PATCH to CommonMiddleware APPEND_SLASH redirect ↵Samuel Colvin
error.
2015-01-29Fixed #23940 -- Allowed model fields to be named `exact`.Simon Charette
An explicit `__exact` lookup in the related managers filters was interpreted as a reference to a foreign `exact` field. Thanks to Trac alias zhiyajun11 for the report, Josh for the investigation, Loïc for the test name and Tim for the review.
2015-01-28Removed threading fallback imports.Tim Graham
Django imports threading in many other places without fallback.
2015-01-28Fixed flake8 warning.Tim Graham
2015-01-28Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib.Jon Dufresne
2015-01-28Refs #14030 -- Added repr methods to all expressionsJosh Smeaton
2015-01-28Refs #24060 -- Added a test demonstrating reverse order isn't mutableJosh Smeaton
2015-01-27Fixed #24209 -- Prevented crash when parsing malformed RFC 2231 headersRaul Cumplido
Thanks Tom Christie for the report and review.
2015-01-27Fixed #24219 -- Moved SelectDateWidget together with the other widgetsLoic Bistuer
and deprecated django.forms.extras. Thanks Berker Peksag and Tim Graham for the reviews.
2015-01-27Cleaned up some forms tests.Loic Bistuer
Thanks Berker Peksag and Tim Graham for the reviews. Refs #24219.