summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2015-07-01Fixed #20916 -- Added Client.force_login() to bypass authentication.Jon Dufresne
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-12Refs #24965 -- Added changes from accidentally reverted file for last commit.Moritz Sichert
2015-06-07Fixed #16860 -- Added password validation to django.contrib.auth.Erik Romijn
2015-06-05Fixed #19542: Made mirroring databases for tests work with OracleShai Berger
No tests are provided because there is no sane way to test database settings within the Django test suite. Thanks Aymeric Augustin for review.
2015-05-25Fixed #24773 -- Added a json() method on test client responses.Andy McKay
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 #24652 -- Disallowed query execution in SimpleTestCase subclasses.Simon Charette
Thanks to Tim and Anssi for the review.
2015-05-18Added backwards compatibility for assertRaisesMessage callable_obj param.Tim Graham
This was broken in c2bc1cefdcbbf074408f4a4cace88b315cf9d652 (refs #23763).
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-16Refs #23763 -- Silenced SimpleTestCase.assertRaisesMessage() deprecation ↵Tim Graham
warning on Python 3.5. Deprecation warning was introduced in https://bugs.python.org/issue24134
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-04-24Fixed #24526 -- Combined django.request/security loggers with the root logger.Tim Graham
Thanks Carl Meyer for review.
2015-03-29Fixed #19259 -- Added group by selected primary keys support.Simon Charette
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-18Fixed #24476 -- Added context manager/decorator for overriding script prefix.Bas Peschier
Tests were using an undocumented keyword argument for easily overriding script prefix while reversing. This is now changed into a test utility which can be used as decorator or context manager.
2015-02-28Simplified emit_post_migrate from flush commandClaude Paroz
Follow-up of f4f24d30e0.
2015-02-15Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Removed old import aliases.Tim Graham
2015-02-05Called parent in SimpleTestCase.setUpClass/tearDownClass.Aymeric Augustin
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-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-18Removed test.utils.TestTemplateLoader per deprecation timeline.Tim Graham
2015-01-12Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn
Added a --debug-sql option for tests and runtests.py which outputs the SQL logger for failing tests. When combined with --verbosity=2, it also outputs the SQL for passing tests. Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and discussion.
2015-01-03Removed extraneous super call in LiveServerTestCaseClaude Paroz
Refs #21281. Thanks Tim Graham and Thomas Chaumeny for investigations.
2014-12-30Added ignore_warnings decoratorClaude Paroz
And removed Ignore*DeprecationWarningsMixin, now obsolete. Thanks Berker Peksag and Tim Graham for the review.
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-28Added initial support for loading template engines.Aymeric Augustin
2014-12-24Fixed #20349 -- Moved setting_changed signal to django.core.signals.Collin Anderson
This removes the need to load django.test when not testing.
2014-12-22Fixed #23792 -- Added test.utils.freeze_time() context manager.Thomas Chaumeny
2014-12-14Fixed #23992 -- Optimized reorder_suite functions using OrderedSetThomas Chaumeny
2014-12-12Refs #20392 -- Load fixtures once within TestCaseThomas Chaumeny
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-06Refs #23947 -- Worked around a bug in Python that prevents deprecation ↵Diego Guimarães
warnings from appearing in tests.
2014-12-06Updated obsolete comment.Aymeric Augustin
2014-12-04Fixed #23911 -- Added support for buffer file uploads in the test clientThomas Tanner
2014-12-03Fixed #20392 -- Added TestCase.setUpTestData()Thomas Chaumeny
Each TestCase is also now wrapped in a class-wide transaction.
2014-12-01Fixed #23289 -- Added mock as a test dependency.Tim Graham
2014-12-01Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) affect the master ↵wrwrwr
router.
2014-11-29Fixed #23930 -- Added copies of captured_std* managers from CPython's ↵wrwrwr
test.support. StringIO import was adapted for compatibility with Python 2.
2014-11-25Fixed #23682 -- Enhanced circular redirects detection in tests.wrwrwr
When the test client detects a redirect to a URL seen in the currently followed chain it will now raise a RedirectCycleError instead of just returning the first repeated response. It will also complain when a single chain of redirects is longer than 20, as this often means a redirect loop with varying URLs, and even if it's not actually one, such long chains are likely to be treated as loops by browsers. Thanks Preston Timmons, Berker Peksag, and Tim Graham for reviews.
2014-11-24Fixed #23742 -- Added an option to reverse tests order.wrwrwr
This is useful for debugging side effects affecting tests that are usually executed before a given test. Full suite and pair tests sort cases more or less deterministically, thus some test cross-dependencies are easier to reveal by reversing the order. Thanks Preston Timmons for the review.
2014-11-23Encapsulated TEMPLATE_DEBUG in Engine.Aymeric Augustin
2014-11-23Encapsulated TEMPLATE_CONTEXT_PROCESSORS in Engine.Aymeric Augustin
Since RequestContext doesn't know its Engine until it's passed to Template.render() -- and cannot without breaking a widely used public API -- an elaborate hack is required to apply context processors.
2014-11-23Removed dependency of template loaders on Django settings.Aymeric Augustin
2014-11-23Moved template loaders management in Engine.Aymeric Augustin
Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
2014-11-23Introduced a template engine class.Aymeric Augustin
Moved Django templates loading infrastructure there.
2014-11-19Simplified caching of template context processors.Aymeric Augustin