summaryrefslogtreecommitdiff
path: root/django/test/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Refs #23919 -- Removed reset_warning_registry() workaround for Python < 3.4.2.Tim Graham2017-01-191-14/+0
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-5/+5
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-3/+3
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+2
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-7/+2
| | | | Thanks Tim Graham for the review.
* Fixed #27698 -- Added django.test.utils.ContextList.get()Tim Graham2017-01-061-0/+6
|
* Fixed #26840 -- Added test.utils.setup/teardown_databases().Andreas Pelme2016-08-171-1/+152
|
* Fixed #27057 -- Made setup_test_environment() store saved settings in one place.Chris Jerdonek2016-08-151-23/+24
|
* Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG.Chris Jerdonek2016-08-101-2/+15
|
* Fixed #27032 -- Prevented setup_test_environment() from being called twice.Chris Jerdonek2016-08-081-0/+7
|
* Edited docs of test.utils.setup/teardown_test_environment().Chris Jerdonek2016-08-051-9/+6
|
* Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.Tobias McNulty2016-06-201-1/+2
| | | | Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
* Fixed broken links in docs and comments.Ville Skyttä2016-06-151-1/+1
|
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-3/+5
|
* Fixed W503 flake8 warnings.Tim Graham2016-04-041-7/+2
|
* Fixed #26157 #25321 -- Added sql/params to extra context of schema loggerMarkus Holtermann2016-03-151-2/+3
| | | | Thanks Akshesh Doshi for the initial patch and Tim Graham for the review
* Fixed #25735 -- Added support for test tags to DiscoverRunner.Jakub Paczkowski2016-02-171-0/+10
| | | | Thanks Carl Meyer, Claude Paroz, and Simon Charette for review.
* Unified test context decorators.Simon Charette2016-01-061-128/+127
| | | | Thanks to Tim for the review.
* Refs #25746 -- Added a test utility to isolate inlined model registration.Simon Charette2016-01-061-0/+68
| | | | Thanks to Tim for the review.
* Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek2015-12-311-1/+1
| | | | Thanks to Tim Graham for the review.
* Fixed #25170 -- Made assertXMLEqual()/assertXMLNotEqual() ignore leading and ↵Mattia Larentis2015-11-091-3/+3
| | | | | | trailing whitespace. Thanks Jacek Bzdak for indepdently contributing a similar fix.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Fixed #24590 -- Cached calls to swappable_setting.Markus Holtermann2015-08-271-1/+11
| | | | | | | | | | Moved the lookup in Field.swappable_setting to Apps, and added an lru_cache to cache the results. Refs #24743 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric Augustin and Tim Graham for the review.
* Fixed #24526 -- Combined django.request/security loggers with the root logger.Tim Graham2015-04-241-0/+15
| | | | Thanks Carl Meyer for review.
* Fixed #24476 -- Added context manager/decorator for overriding script prefix.Bas Peschier2015-03-181-0/+21
| | | | | | 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+5
|
* Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin2015-02-031-1/+23
| | | | | | | | | | 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.
* Removed test.utils.TestTemplateLoader per deprecation timeline.Tim Graham2015-01-181-12/+0
|
* Added ignore_warnings decoratorClaude Paroz2014-12-301-22/+35
| | | | | And removed Ignore*DeprecationWarningsMixin, now obsolete. Thanks Berker Peksag and Tim Graham for the review.
* Fixed #23792 -- Added test.utils.freeze_time() context manager.Thomas Chaumeny2014-12-221-0/+17
|
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-2/+2
| | | | comprehension
* Refs #23947 -- Worked around a bug in Python that prevents deprecation ↵Diego Guimarães2014-12-061-0/+14
| | | | warnings from appearing in tests.
* Updated obsolete comment.Aymeric Augustin2014-12-061-2/+2
|
* Fixed #23930 -- Added copies of captured_std* managers from CPython's ↵wrwrwr2014-11-291-0/+48
| | | | | | test.support. StringIO import was adapted for compatibility with Python 2.
* Removed override_template_loaders and override_with_test_loader.Aymeric Augustin2014-11-161-86/+2
| | | | | They can be replaced with override_settings and that makes the corresponding tests much more obvious.
* Moved all template loaders under django.template.loaders.Aymeric Augustin2014-11-161-18/+12
| | | | | | | | | | | | Reformatted the code of base.Loader according to modern standards. Turned the test template loader into a regular locmem.Loader -- but didn't document it. Added a normal deprecation path for BaseLoader which is a public API. Added an accelerated deprecation path for TestTemplateLoader which is a private API.
* Fixed regression in 4dc4d12e. Refs #21598.Aymeric Augustin2014-11-161-3/+5
| | | | | | That commit contained a mistake that resulted in the use_cached_loader option of override_with_test_loader being ignored. As a consequence some configurations weren't exercised any more by the test suite.
* Fixed #17101 -- Integrated django-secure and added check --deploy optionTim Graham2014-09-121-1/+5
| | | | | | | Thanks Carl Meyer for django-secure and for reviewing. Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and Jorge Carleitao for reviews.
* Factorize some code using ContextDecorator.Thomas Chaumeny2014-08-281-8/+2
|
* Fixed #22873 -- Renamed use_debug_cursor to force_debug_cursor to clarify ↵areski2014-07-261-3/+3
| | | | the behavior.
* Fixed #3711, #6734, #12581 -- Bounded connection.queries.Aymeric Augustin2014-06-071-2/+2
| | | | | | | Prevented unlimited memory consumption when running background tasks with DEBUG=True. Thanks Rob, Alex, Baptiste, and others.
* Fixed #21598 -- cleaned up template loader overrides in testsUnai Zalakain2014-05-221-24/+89
| | | | | | | - Template loader overriding is managed with contexts. - The test loader is a class (function based loaders entered deprecation timeline in 1.4). - Template loader overrider that overrides with test loader added.
* Advanced deprecation warnings for 1.8.Aymeric Augustin2014-03-221-4/+4
|
* Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz2014-03-081-7/+5
| | | | | Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Removed TransRealMixin.Aymeric Augustin2014-01-271-17/+0
| | | | Fixed #21688. Refs https://github.com/django/django/pull/1147.
* Fixed some missing/extraneous new line warnings.Simon Charette2014-01-261-1/+0
|
* Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer2014-01-251-0/+12
| | | | | | test suite. Thanks Aymeric for the suggestion.
* Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee2014-01-201-0/+20
| | | | | | | | | This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-4/+4
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().