summaryrefslogtreecommitdiff
path: root/docs/topics/testing
AgeCommit message (Collapse)Author
2014-01-22Always use parentheses when documenting a method with no arguments.Baptiste Mispelon
2014-01-22Don't show `self` in the list of arguments of a method.Baptiste Mispelon
This is consistent with Python's official documentation and it's a sphinx recommendation too[1]. [1] http://sphinx-doc.org/markup/desc.html#dir-method Refs #21855.
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.
2013-12-31Fixed #21701 -- Improved testing doc titles and added testing/tools.txt.Tim Graham
Thanks cjerdonek for the suggestion.
2013-12-23Added modify_settings to alter settings containing lists of values.Aymeric Augustin
2013-12-18Fixed #21625 -- incorrect documentation for DiscoverRunner.build_suiteTianyi Wang
2013-12-08Updated a bunch of hyperlinks in documentationClaude Paroz
2013-11-21Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.Loic Bistuer
2013-11-19Fixed #15179 -- middlewares not applied for test client login()Unai Zalakain
Requests made with django.test.Client.login() and logout() respect defaults defined in django.test.Client instantiation and are processed through middleware. Thanks to Loic for the reviews.
2013-11-07Fixed #13725 -- take url scheme into account in assertRedirectsUnai Zalakain
Scheme is handled correctly when making comparisons between two URLs. If there isn't any scheme specified in the location where we are redirected to, the original request's scheme is used. If present, the scheme in ``expected_url`` is the one used to make the comparations to.
2013-11-02Fixed #21341 -- Eased https requests with the test clientUnai Zalakain
All request methods of ``django.test.client.Client`` receive a ``secure`` argument that defaults to ``False`` indicating whether or not to make the request through https. Thanks Aymeric Augustin for the review.
2013-10-22Fixed #21304 -- Typo in docs/topics/testing/advanced.txtTim Graham
Thanks joao at silvaneves.org for the report.
2013-10-11Fixed #15582 -- Documented how TransactionTestCase.multi_db affects fixtures.Tim Graham
Thanks slinkp for the suggestion.
2013-09-10Fixed #20919 -- Extended assertRedirects to be able to avoid fetching ↵Juan Catalano
redirect's response. Thanks mjtamlyn for the suggestion.
2013-09-10Fixed #16534 -- Improved ability to customize DiscoverRunnerTim Graham
Added DiscoverRunner.test_suite and .test_runner attributes. Thanks tomchristie for the suggestion and jcd for the patch.
2013-09-09Fixed #19885 -- cleaned up the django.test namespaceKevin Christopher Henry
* override_settings may now be imported from django.test * removed Approximate from django.test * updated documentation for things importable from django.test Thanks akaariai for the suggestion.
2013-09-07Fixed #21068 -- Added some docs for DiscoverRunnerTim Graham
Thanks jcd.
2013-09-06Fixed a link in topics/testing/overview.txtTim Graham
2013-08-31Made django.test.testcases not depend on staticfiles contrib app.Ramiro Morales
Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase unittest TestCase subclass. Fixes #20739.
2013-08-23Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/oracle/base.py django/db/backends/postgresql_psycopg2/base.py django/db/models/signals.py tests/queries/tests.py
2013-08-22Documentation -- Clarified use of 'view' in test client introduction.Kevin Christopher Henry
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-07-30Rename pre_ and post_syncdb to *_migrate, with aliases from old namesAndrew Godwin
2013-07-27Fixed a number of minor misspellings.Julien Phalip
2013-07-25More migration docs, and conversion of all easy syncdb referencesAndrew Godwin
2013-07-19Fixed #18551 -- Enabled skipIfDBFeature/skipUnlessDBFeature to decorate a classClaude Paroz
Thanks Tim Graham for the review and improved patch.
2013-07-12Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'Joeri Bekker
2013-07-03Fixed #20609 -- Documented how to use request.user with RequestFactorySusanTan
Thanks michel@ for the suggestion.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-07-01Fixed #20680 -- Deprecated django.utils.unittest.Aymeric Augustin
Refs #19204.
2013-06-27Fixed #20590: Documented new test case orderingAndrew Godwin
2013-06-12Fixed #20579 -- Improved TransactionTestCase.available_apps.Aymeric Augustin
Also moved its documentation to the 'advanced' section. It doesn't belong to the 'overview'. Same for TransactionTestCase.reset_sequences. When available_apps is set, after a TransactionTestCase, the database is now totally empty. post_syncdb is fired at the beginning of the next TransactionTestCase. Refs #20483.
2013-06-10Added TransactionTestCase.available_apps.Aymeric Augustin
This can be used to make Django's test suite significantly faster by reducing the number of models for which content types and permissions must be created and tables must be flushed in each non-transactional test. It's documented for Django contributors and committers but it's branded as a private API to preserve our freedom to change it in the future. Most of the credit goes to Anssi. He got the idea and did the research. Fixed #20483.
2013-06-05Proofed the 1.6 release notesTim Graham
2013-06-04Fixed #18924 -- Made test.Client.logout send user_logged_out signal.Tim Graham
Thanks awsum for the suggestion and Pavel Ponomarev and Florian Hahn for the patch.
2013-05-31Fixed #20166 - Corrected TEST_DEPENDENCIES example in testing docs.Tim Graham
Thanks czambran.
2013-05-27Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetErrorTim Graham
Thank-you Martin Green for the patch.
2013-05-23Fixed #20316 - Clarified transaction behavior of TestCase.Tim Graham
Thanks uberj@ for the report and lolek09 for the patch.
2013-05-18Fixed #20004 -- Moved non DB-related assertions to SimpleTestCase.Ramiro Morales
Thanks zalew for the suggestion and work on a patch. Also updated, tweaked and fixed testing documentation.
2013-05-15Fixed #20165 - Updated testing example to use django.test.TestCase.Tim Graham
Thanks Lorin Hochstein.
2013-05-12Updated test failure example.Ramiro Morales
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2013-05-07Python 2.5 is not relevant to master.Carl Meyer
2013-05-06Fixed #20177 - Corrected docs for django.test.utils.setup_test_environment.Tim Graham
Thanks vlad.london.uk@ for the report.
2013-05-06Fixed #20274 - Added some clarifying section headings in the test docs.Tim Graham
2013-04-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.
2013-03-29Fixed #19897 - Updated static files howto.Tim Graham
Thanks Jan Murre, Reinout van Rees and Wim Feijen, plus Remco Wendt for reviewing.