summaryrefslogtreecommitdiff
path: root/docs/testing.txt
AgeCommit message (Collapse)Author
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
2008-08-11Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee
creation and introspection modules. Introduces a new validation module for DB-specific validation. This is a backwards incompatible change; see the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Removed two-year-old note about testing framework being under development.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #7962 -- Corrected typo in testing docs. Thanks to cgod for the report.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21Refs #7864 -- Corrected more instances of "newforms" in the docs.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-13Fixed #7737 -- Corrected a comment in the testing docs to be PEP257 ↵Russell Keith-Magee
compliant. Thanks to msas@telia.com for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-12Fixed #7583 -- Corrected the testing docs that referred to the defunct ↵Russell Keith-Magee
headers attribute of the response. Added a test case to validate (and document) the new behavior. Thanks to Malcolm for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-30Fixed #7521 -- Added the ability to customize ROOT_URLCONF for the duration ↵Russell Keith-Magee
of a TestCase. Thanks to Mark Fargas (telenieko) for his work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-06Fixed #7165 -- Added an assertNotContains() method to the test client. ↵Russell Keith-Magee
Thanks for the suggestion and implementation, J. Pablo Fernandez <pupeno@pupeno.com>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-27Tiny reST fix to testing.txt.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19Edited docs/testing.txt changes from [6929]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Split up the documentation of the test database and the test output.Malcolm Tredinnick
Refs #6134. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-30Fixed #5832 -- Removed unneeded import in testing documentation, thanks ↵Gary Wilson Jr
Thomas Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6632 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #4692 -- Documented required database privileges. Thanks, ubernostrumAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #4360 -- Corrected where HTTP headers are in the test response. Also ↵Malcolm Tredinnick
noted that it is an extension of HttpResponse, not a simpler object. Thanks, John Shaffer for the first part. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-03Fixed #4988 -- In the test client, Added tracking of the client and request ↵Russell Keith-Magee
that caused a response so that the assertRedirects check can use the correct client when following a redirect. Well spotted, alex@gc-web.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-31Fixed #4968 -- Added assertRedirects handling for paths with GET data. ↵Russell Keith-Magee
Thanks for the patch, Ivan Sagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-21Fixed #5221 -- Fixed typo in docs/testing.txt. Thanks, derelmAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-17Fixed #5189 -- Added logout method to test Client. Thanks, Jakub Wisniowski ↵Russell Keith-Magee
<restless.being@gmail.com>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-16Changed django.test.utils.create_test_db to return the name of the test ↵Adrian Holovaty
database that was created git-svn-id: http://code.djangoproject.com/svn/django/trunk@5910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-16Fixed #5181 -- Fixed typo in example in docs/testing.txt. Thanks, hayleyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-15Fixed some ReST errors in docs/testing.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-15Removed stray tabs mistakenly added to docs/testing.txt in [5889]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-15*Finally* edited docs/testing.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-05Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms ↵Gary Wilson Jr
`FormField`s and db model `Field`s. This is fully backwards compatible at the moment since the legacy `maxlength` argument is still supported. Using `maxlength` will, however, issue a `PendingDeprecationWarning` when used. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-28Fixed #4995 -- Fixed some problems in documentation ReST formatting. Thanks, ↵Russell Keith-Magee
Simon G. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-28Fixed #4460 -- Added the ability to be more specific in the test cases that ↵Russell Keith-Magee
are executed. This is a backwards incompatible change for any user with a custom test runner. See the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-23Added documentation for a test runner argument that has always been present, ↵Russell Keith-Magee
but was undocumented. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-23Fixed #3771 -- Modified the test runner to observe the --noinput argument ↵Russell Keith-Magee
controlling script interactivity. This means that test scripts can now be put in a buildbot environment. This is a backwards incompatible change for anyone that has written a custom test runner. Thanks for the suggestion, moof@metamoof.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-20Fixed #4901 -- Modified assertContains to provide a default check of 'any ↵Russell Keith-Magee
instances of text in content'. Thanks for the suggestion, nis@superlativ.dk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-20Refs #3782 -- Added documentation note that suite() handling is only in ↵Russell Keith-Magee
development version. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-20Fixed #3782 -- Added support for the suite() method recommended by the ↵Russell Keith-Magee
Python unittest docs. Thanks for the suggestion, rene.puls@repro-mayr.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-15Fixed #4877 -- Fixed typo in testing documentation, patch from John Shaffer.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-01Fixed #4690 -- Fixed a bunch of ReST errors in docs. Thanks, Paul B.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01Small rewording of docs/testing.txt changes from [5380]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31Fixed #4439 -- Fixed typo in docs/testing.txt. Thanks, hayleyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29Fixed #4420 -- Fixed broken link in docs/testing.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29Added new TEST_DATABASE_CHARSET and TEST_DATABASE_COLLATION settings to ensureMalcolm Tredinnick
that databases are created with the expected encoding during testing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-27Fixed #4366 -- Fixed a small typo. Thanks, Ivan Sagalaev.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14Fixed #4285 -- Fixed ReST error in docs/testing.txt. Thanks, Michał KwiatkowskiAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12Changed 'email' to 'e-mail' in docs/testing.txt, to fit our consistent styleAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10Added configurable arguments to assertRedirects and assertContains to allow ↵Russell Keith-Magee
for other response status codes. Thanks for the suggestion, Jiri Barton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Added redirection for email services during test conditions.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Removed a bunch of trailing whitespace. Don't people realise whitespace is aMalcolm Tredinnick
scarce resource, not to be wasted? git-svn-id: http://code.djangoproject.com/svn/django/trunk@5169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Fixed #3936 -- Mentioned that the DATABASE_USER in the test settings file needsMalcolm Tredinnick
permission to create a new database on the system. Patch from Vinay Sajip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-07Added assertFormError, assertTemplateUsed and assertTemplateNotUsed for use ↵Russell Keith-Magee
during unit testing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-06Finally began proofreading docs/testing.txt. Did the intro for now; more to comeAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-05Backwards incompatible change: Changed the way test.Client.login operates. ↵Russell Keith-Magee
Old implemenation was fragile, and tightly bound to forms. New implementation interfaces directly with the login system, is compatible with any authentication backend, and doesn't depend upon specific template inputs being available. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-05Added a default test Client to TestCase, and added some assertions for some ↵Russell Keith-Magee
common testing patterns. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20Changed all URL references for django_admin/ to the canonical name ofMalcolm Tredinnick
django-admin/. This will avoid problems with missing HTTP redirects in future historical documents. Refs #3992. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5040 bcc190cf-cafb-0310-a4f2-bffc1f526a37