summaryrefslogtreecommitdiff
path: root/docs/topics/testing.txt
AgeCommit message (Collapse)Author
2010-06-07[soc2010/query-refactor] Merged up to trunk r13328.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-09Fixed #12412 -- Clarified the documentation around file handling by the test ↵Russell Keith-Magee
client. Thanks to Gabriel Hurley for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-06Fixed #13377 -- Corrected markup typo in testing docs. Thanks to DrMeers for ↵Russell Keith-Magee
the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-22Fixed #12932 -- Added an extra argument to suite_result() in the test ↵Russell Keith-Magee
runner, and added **kwargs as protection against future changes. Thanks to Eric Holscher for the report and patch. This is BACKWARDS INCOMPATIBLE for anyone that has written a custom DjangoTestRunner class since it was introduced in r12255. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-01Fixed #6364 -- Added the ability to run individual doctests.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-25Fixed #12542 -- Added the TEST_MIRROR setting, allowing testing of read ↵Russell Keith-Magee
slave databases. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-22Fixed #10314 -- Added a message prefix argument to Django's test assertions. ↵Russell Keith-Magee
Thanks to Wes Winham for the original suggestion, and Chistian Oudard for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-19Fixed #12640 -- Corrected a regression in test suite construction order ↵Russell Keith-Magee
introduced by #12255. Also updated the docs to reflect what the test code has always done. Thanks to Ramiro Morales for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-18Fixed #12638 -- Minor documentation cleanups around the new class-based test ↵Russell Keith-Magee
runners. Thanks to Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-18Updated the docs around test runners to encourage the use of **kwargs in the ↵Russell Keith-Magee
test runner constructor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-18Fixed #12624 -- Modified test runners to be class based.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-31Typo fix for doc added in r12034. Thanks Alex Gaynor.Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-31Fixed #12364: Added graceful exit from a test run when Ctrl-C is pressed. ↵Karen Tracey
Thanks Randy Barlow. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-26Fixed several broken and redirecting URLs in the documentation (fixes ↵Gary Wilson Jr
#12219, refs #12427). git-svn-id: http://code.djangoproject.com/svn/django/trunk@11994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-12Fixed #12204 -- Corrected the use of :djadmin: links in the testing docs, ↵Russell Keith-Magee
plus updated a lot of old-style markup in the django-admin docs. Thanks to Art_S for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-03Fixed #10355 -- Added an API for pluggable e-mail backends.Russell Keith-Magee
Thanks to Andi Albrecht for his work on this patch, and to everyone else that contributed during design and development. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-30Fixed #11961: Corrected a few typos in docs/testing.txt. Thanks to timo for ↵James Bennett
the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-16Fixed #10908 -- Clarified the procedure for creating test users in the ↵Russell Keith-Magee
testing docs. Thanks to gruszczy and timo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-03Fixed #9607 -- Added documentation for the ``extra`` argument in test client ↵Russell Keith-Magee
methods. Thanks to jroes for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-18Fixed #11253 -- Normalized the way the docs refer to TestCase.assert* ↵Russell Keith-Magee
methods. Thanks to SmileyChris for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-27Fixed #11215 -- Replaced erroneous catch with except in testing doc. Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-17Fixed #10971 -- Corrected code example involving redirect_chain in the ↵Karen Tracey
testing doc. Thanks yourcelf. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03Fixed a whole bunch of small docs typos, errors, and ommissions.Jacob Kaplan-Moss
Fixes #8358, #8396, #8724, #9043, #9128, #9247, #9267, #9267, #9375, #9409, #9414, #9416, #9446, #9454, #9464, #9503, #9518, #9533, #9657, #9658, #9683, #9733, #9771, #9835, #9836, #9837, #9897, #9906, #9912, #9945, #9986, #9992, #10055, #10084, #10091, #10145, #10245, #10257, #10309, #10358, #10359, #10424, #10426, #10508, #10531, #10551, #10635, #10637, #10656, #10658, #10690, #10699, #19528. Thanks to all the respective authors of those tickets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31A whole lotta documentation fixes: Fixes #8704, #8826, #8980, #9243, #9343, ↵Jacob Kaplan-Moss
#9529, git-svn-id: http://code.djangoproject.com/svn/django/trunk@10303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-18Fixed #10482 -- Unified access to response.context when inspecting responses ↵Russell Keith-Magee
from the test client. Thanks to James Bennett for the design, and Julien Phalip for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-09Changed a few versionadded doc directives from "development" to "1.1".Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-08Fixed #10433: Corrected typo in test doc. Thanks Matt Doran.Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-27Fixed #4476 -- Added a ``follow`` option to the test client request methods. ↵Russell Keith-Magee
This implements browser-like behavior for the test client, following redirect chains when a 30X response is received. Thanks to Marc Fargas and Keith Bussell for their work on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the ↵Karen Tracey
database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites. This change may be slightly backwards incompatible, if existing tests need to test transactional behavior, or if they rely on invalid assumptions or a specific test case ordering. For the first case, django.test.TransactionTestCase should be used. TransactionTestCase is also a quick fix to get around test case errors revealed by the new rollback approach, but a better long-term fix is to correct the test case. See the testing doc for full details. Many thanks to: * Marc Remolt for the initial proposal and implementation. * Luke Plant for initial testing and improving the implementation. * Ramiro Morales for feedback and help with tracking down a mysterious PostgreSQL issue. * Eric Holscher for feedback regarding the effect of the change on the Ellington testsuite. * Russell Keith-Magee for guidance and feedback from beginning to end. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-15Fixed #9477 -- Removed and edited a bunch of references to "developmentMalcolm Tredinnick
version". Some were replaced with versionadded or versionchanged directives. Other, more minor ones, were removed altogether. Based on a patch from James Bennett. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-14Fixed #9594 -- Typo fix in the testing example.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-12Fixed #9351 -- Modified the test client to pass on URL encoded parameters to ↵Russell Keith-Magee
the underlying views. Thanks to sime for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-02Fixed #9499: Corrected self-reference in test client put method doc. Thanks ↵Karen Tracey
jroes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07Fixed #5888 -- Added methods to the test client to support HEAD, PUT, DELETEMalcolm Tredinnick
and OPTIONS support. Thanks Scott Barr and Leah Culver. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05Fixed a typo and clarified how django.core.mail.outbox works in the testing ↵Malcolm Tredinnick
framework. Fixed #9237. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02Fixed #8753: converted "new in ..." callouts to proper Sphinx ↵Jacob Kaplan-Moss
"versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8578: Corrected a typo in a shell example in the testing docs. Thanks ↵Russell Keith-Magee
to Manuel Saelices for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Removed oldforms, validators, and related code:Gary Wilson Jr
* Removed `Manipulator`, `AutomaticManipulator`, and related classes. * Removed oldforms specific bits from model fields: * Removed `validator_list` and `core` arguments from constructors. * Removed the methods: * `get_manipulator_field_names` * `get_manipulator_field_objs` * `get_manipulator_fields` * `get_manipulator_new_data` * `prepare_field_objs_and_params` * `get_follow` * Renamed `flatten_data` method to `value_to_string` for better alignment with its use by the serialization framework, which was the only remaining code using `flatten_data`. * Removed oldforms methods from `django.db.models.Options` class: `get_followed_related_objects`, `get_data_holders`, `get_follow`, and `has_field_type`. * Removed oldforms-admin specific options from `django.db.models.fields.related` classes: `num_in_admin`, `min_num_in_admin`, `max_num_in_admin`, `num_extra_on_change`, and `edit_inline`. * Serialization framework * `Serializer.get_string_value` now calls the model fields' renamed `value_to_string` methods. * Removed a special-casing of `models.DateTimeField` in `core.serializers.base.Serializer.get_string_value` that's handled by `django.db.models.fields.DateTimeField.value_to_string`. * Removed `django.core.validators`: * Moved `ValidationError` exception to `django.core.exceptions`. * For the couple places that were using validators, brought over the necessary code to maintain the same functionality. * Introduced a SlugField form field for validation and to compliment the SlugField model field (refs #8040). * Removed an oldforms-style model creation hack (refs #2160). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26A few fixes for the testing documentation:Gary Wilson Jr
* Removed an extra semicolon that was preventing the rendering of a Sphinx class directive for the `Client()` class. * Indented `Client` class's methods. * Added linebreaks after attribute directives of `Response` class so Sphinx rendenders them correctly. * Removed trailing whitespace. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-24Fixed #8401: Added a note on the fact that DEBUG=False is forced during test ↵Russell Keith-Magee
execution. Thanks to rishi for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-24Corrected some formatting in the testing docs.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Massive reorganization of the docs. See the new docs online at ↵Jacob Kaplan-Moss
http://docs.djangoproject.com/. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8506 bcc190cf-cafb-0310-a4f2-bffc1f526a37