summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-05-22Refs #9230 -- Added complementary tests for widget iterationsClaude Paroz
2015-05-21Fixed #17085, #24783 -- Refactored template library registration.Preston Timmons
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
2015-05-20Fixed incorrect session.flush() in cached_db session backend.Tim Graham
This is a security fix; disclosure to follow shortly. Thanks Sam Cooke for the report and draft patch.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-20Fixed typo in file_storage tests.Tim Graham
2015-05-20Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.Simon Charette
Thanks to Tim and Anssi for the review.
2015-05-20Refs #24652 -- Made sure template backend tests call their super setUpClass.Simon Charette
2015-05-20Refs #24652 -- Converted a template test to avoid executing queries.Simon Charette
2015-05-20Refs #24652 -- Enforced test isolation in file_storage tests.Simon Charette
2015-05-20Fixed #24705 -- Fixed negated Q objects in expressions.Anssi Kääriäinen
Avoided split_exclude() for Q when used as an expression.
2015-05-19Fixed #24818 -- Prevented models.CharField from accepting a string as max_lengthAlasdair Nicol
2015-05-19Refs #24553 -- Fixed urlpatterns leakage in auth_testsRiccardo Magliocchetti
2015-05-18Added backwards compatibility for assertRaisesMessage callable_obj param.Tim Graham
This was broken in c2bc1cefdcbbf074408f4a4cace88b315cf9d652 (refs #23763).
2015-05-18Refs #23763 -- Fixed SMTPServer Python 3.5 deprecation warning in mail test.Tim Graham
2015-05-18Fixed #24812 -- Fixed app registry RuntimeWarnings in schema and migrations ↵Tim Graham
tests.
2015-05-17Added tzinfo to a test to fix RuntimeWarning.Tim Graham
2015-05-17Factored skip condition when pytz isn't installed.Aymeric Augustin
2015-05-17Dropped the needs_datetime_string_cast feature.Aymeric Augustin
It has been superseded by the converter infrastructure.
2015-05-17Worked around a bug when chaining skipIf/UnlessDBFeature.Aymeric Augustin
2015-05-17Fixed #23820 -- Supported per-database time zone.Aymeric Augustin
The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
2015-05-17Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin
This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
2015-05-17Removed global timezone-aware datetime adapters.Aymeric Augustin
Refs #23820. Fixed #19738. Refs #17755. In order not to introduce a regression for raw queries, parameters are passed through the connection.ops.value_to_db_* methods, depending on their type.
2015-05-17Removed global timezone-aware datetime converters.Aymeric Augustin
Refs #23820.
2015-05-16Removed redundant list() calls.Tim Graham
2015-05-16Fixed #24774 -- Made contrib.site's Site.domain field uniquePiotr Jakimiak
2015-05-15Fixed #24791 -- Added fallback when 'postgres' database isn't availableClaude Paroz
Thanks Carl Meyer and Tim Graham for the reviews.
2015-05-15Fixed #24799 -- Fixed session cookie deletion when using SESSION_COOKIE_DOMAINBo Lopker
2015-05-15Fixed #24757 -- Recreated MySQL index when needed during combined index removalClaude Paroz
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and review.
2015-05-14Refs #24553 -- Isolated admin_* tests.Riccardo Magliocchetti
This fixes a regression with runtests.py --reverse after bd53db5eab05099ae371348529c6428e0da95c6a We need to avoid leaking model registration in the default AdminSite.
2015-05-13Fixed #24742 -- Made runserver.check_migrations ignore read-only databasesClaude Paroz
Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
2015-05-13Fixed #24751 -- Fixed HStoreField isnull lookup.Tim Graham
2015-05-13Removed test numbering in gdal testsClaude Paroz
2015-05-12Fixed #24105 -- Called Storage.get_valid_name() when upload_to is callableAbhaya Agarwal
2015-05-12[1.8.x] Refs #24698, #24712 -- Forwardported ForeignKey.get_db_prep_value() ↵Abhaya Agarwal
test and release notes. Fixed in master by b68212f539f206679580afbfd008e7d329c9cd31. Forwardport of 290c9d665490d80b0a1b648fb022190d7dc375fc from stable/1.8.x
2015-05-12Fixed #24156 -- Fixed inherited related name of ManyToManyField.Andriy Sokolovskiy
Fixed situation when parent abstract model declares related_name='+', and child models had an invalid queryset.
2015-05-11Fixed #24733 -- Passed the triggering exception to 40x error handlersClaude Paroz
Thanks Tim Graham for the review.
2015-05-11Fixed #24553 -- Added the list of available applications to ↵Riccardo Magliocchetti
AdminSite.each_context()
2015-05-11Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in some queriesAnssi Kääriäinen
When the query's model had a self-referential foreign key, the compiler.get_group_by() code incorrectly used the self-referential foreign key's column (for example parent_id) as GROUP BY clause when it should have used the model's primary key column (id).
2015-05-11Fixed #24766 -- Added join promotion for Case expressionsAnssi Kääriäinen
2015-05-09Fixed typo in settings_testsTim Graham
2015-05-09Mocked db.connections in test_runner testsClaude Paroz
2015-05-06Moved engine-related exceptions to django.template.exceptions.Preston Timmons
With the introduction of multiple template engines these exceptions are no longer DTL-specific. It makes more sense for them to be moved out of DTL-related modules.
2015-05-06Fixed #24119, #24120 -- Formalized debug integration for template backends.Preston Timmons
2015-05-06Fixed #24207 -- Added 25D-type geometry field support to ogrinspectClaude Paroz
Thanks Michael Diener for the report and sample data, and Tim Graham for the review.
2015-05-06Fixed #16609 -- Fixed duplicate admin results when searching nested M2M ↵Samuel Paccoud
relations. This was fixed earlier but only when the M2M relation was at the first level on the object. This commit fixes the issue even when the M2M is at deeper levels, such as behind a foreign key.
2015-05-06Fixed #24497 -- Added Widget.supports_microseconds attributewdmgsm
2015-05-06Fixed #24708 -- Handled non-string values in GenericIPAddressField.to_python()Pradeek
2015-05-05Made some tests run on non-GIS databasesClaude Paroz
2015-05-05Fixed #24752 -- query crash when reusing Case expressionsAnssi Kääriäinen
Case expressions weren't copied deep enough (self.cases list was reused resulting in an error).
2015-05-04Fixes #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2Antonio Garcia-Dominguez