summaryrefslogtreecommitdiff
path: root/django/test
AgeCommit message (Collapse)Author
2014-06-14Converted test management command to argparseClaude Paroz
Keeping backwards compatibility with test_runner.option_list is tricky and would imply transforming an optparse.Option to an argparse.Action. I choose to introduce a backwards incompatible change because it only affects testing, not runtime behavior.
2014-06-13Fixed #22771 -- Fixed test.Client.logout when using custom auth backend.Xavier Fernandez
2014-06-13Fixed #16087 -- Added ResolverMatch instance to test client response.Greg Chapple
Thanks mrmachine for the suggestion.
2014-06-09Fixed flake8 error.Tim Graham
2014-06-08Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin
2014-06-07Fixed #3711, #6734, #12581 -- Bounded connection.queries.Aymeric Augustin
Prevented unlimited memory consumption when running background tasks with DEBUG=True. Thanks Rob, Alex, Baptiste, and others.
2014-06-05Fixed #20550 -- Added keepdb argument to destroy_test_dbGreg Chapple
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-22Fixed #21357 -- Fixed test client session initialization.Preston Timmons
The test client will now create a session when it is first accessed if no session already exists.
2014-05-22Fixed #21598 -- cleaned up template loader overrides in testsUnai Zalakain
- 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.
2014-05-05Fixed #22572 -- override_settings(ROOT_URLCONF) didn't clear ↵Loic Bistuer
urlresolvers._urlconfs. Thanks Anubhav Joshi and Tim Graham for the reviews.
2014-04-28Revert "Fixed #15179 -- middlewares not applied for test client login()"Tim Graham
This reverts commit 4fdd51b73240bf9c8d9472fcc45df699f0714755. See the ticket for concerns with this implementation; it will be revisited.
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-18Fixed #22465 -- New assertion assertJSONNotEqualamatellanes
2014-04-14Fixed #22369 -- Added count parameter to assertTemplateUsedJacob R. Rothenbuhler
2014-04-12Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase onesClaude Paroz
Thanks aptiko for the reporti and Tim Graham for the review.
2014-04-09Used more specific test assertions.Aymeric Augustin
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-03-31Fixed typo in docstring.Tim Graham
2014-03-22Advanced deprecation warnings for 1.8.Aymeric Augustin
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-03-21Removed django.test.simple and django.test._doctest per deprecation timeline.Tim Graham
refs #17365, #17366, #18727.
2014-03-09Reorganized the database test settingsShai Berger
Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-13Fixed a typo (I guess).Florian Apolloner
2014-02-10Allowed a message to be passed to assertQuerysetEqual to make it consistent ↵Chris Bailey
with other assert methods.
2014-02-07Fixed #21518 -- Made override_settings(ROOT_URLCONF) clear the resolver cache.Chris Wilson
Thanks Aymeric Augustin and Simon Charette for reviews.
2014-01-27Removed TransRealMixin.Aymeric Augustin
Fixed #21688. Refs https://github.com/django/django/pull/1147.
2014-01-27Minor cleanup.Aymeric Augustin
2014-01-26Fixed some missing/extraneous new line warnings.Simon Charette
2014-01-25Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer
test suite. Thanks Aymeric for the suggestion.
2014-01-21Refs #21831 -- Softened the TestClient dependency on contrib.auth.Russell Keith-Magee
This is to prevent an import of django.test causing an import (and thus an implicit checks regisration) for an app that may not be in `INSTALLED_APPS`. Better fixes may be possible when #20915 and/or #21829 are addressed. Thanks to @carljm for the report.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
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.
2014-01-16Fixed #21740 -- Stopped using mutable default arguments in test clientClaude Paroz
Thanks Denver Coneybeare for the report and initial patch, and Atala for another patch.
2014-01-09Fixed #12571 -- Attached originating WSGIRequest to test client responses.Unai Zalakain
Originating WSGIRequests are now attached to the ``wsgi_request`` attribute of the ``HttpResponse`` returned by the testing client. Thanks rvdrijst for the suggestion.
2014-01-06Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin
2014-01-01Wiped get_commands() cache when INSTALLED_APPS changes.Aymeric Augustin
Refs #21018, #21688.
2014-01-01Fixed #21206 -- Fixed test discovery without labelsPreston Timmons
Added test to verify an empty label performs discovery on the current working directory.
2013-12-29Cleared global templatetags module cache.Florian Apolloner
TOOOOO MUCH GLOBAL STATE (you didn't see that).
2013-12-27Properly app_template_dirs when INSTALLED_APPS change.Florian Apolloner
2013-12-26Made the AppConfig API marginally more consistent.Aymeric Augustin
Eliminated the app_ prefix that was more confusing than useful.
2013-12-26Fixed #21206 -- No longer run discovery if the test label doesn't point to a ↵Preston Timmons
package or directory. Thanks thepapermen for the report and Carl Meyer for the review.
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-24Fixed override_settings when set_available_apps raises an exception.Aymeric Augustin
Previously, this would corrupt the settings, because __exit__ isn't called when __enter__raises an exception.
2013-12-23Added modify_settings to alter settings containing lists of values.Aymeric Augustin
2013-12-23Refactored INSTALLED_APPS overrides.Aymeric Augustin
* Introduced [un]set_installed_apps to handle changes to the INSTALLED_APPS setting. * Refactored [un]set_available_apps to share its implementation with [un]set_installed_apps. * Implemented a receiver to clear some app-related caches. * Removed test_missing_app as it is basically impossible to reproduce this situation with public methods of the new app cache.
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-22Complained on override_settings(INSTALLED_APPS=...).Aymeric Augustin
Currently such overrides aren't reflected in the app cache. It would be possible to handle them. But that doesn't look like a very good API. It makes it complicated to express "add this app" and "remove this app", which are the most common operations on INSTALLED_APPS.
2013-12-22Stop testing for inclusion in INSTALLED_APPS.Aymeric Augustin
Removed some exception masking in the comments app that was harmful and couldn't be preserved easily.