summaryrefslogtreecommitdiff
path: root/docs/topics/testing
AgeCommit message (Collapse)Author
2021-03-26[3.2.x] Added missing mode="rb" argument to open() call in Client.post() ↵John
example in docs. Backport of 509d266c6aae5e4d5738fe2a2cba0bde581aac2b from main
2021-03-19[3.2.x] Refs #25735 -- Added tags/exclude_tags arguments to DiscoverRunner docs.Mariusz Felisiak
Backport of 37044817f9a57126d655f216019e8c8cca7c151b from main
2021-03-19[3.2.x] Added parallel argument to DiscoverRunner docs.Mariusz Felisiak
Follow up to cd9fcd4e8073490a52c9e79133ada4661cb7db38. Backport of f099ef3ef53f88160d04d7dcc73859801b05a83e from main
2021-03-19[3.2.x] Corrected DiscoverRunner.build_suite() signature.Mariusz Felisiak
Follow up to 9012833af857e081b515ce760685b157638efcef. Backport of fc6fba0aa9e4575c9a1c23ad7031eebb1c112868 from main
2021-03-18[3.2.x] Fixed #32547 -- Corrected notes about validation in HTML assertions ↵Hasan Ramezani
docs. Backport of ceb4b9ee68dffc6ab0398886f1758f15f037c472 from main
2021-03-17[3.2.x] Fixed typo in docs/topics/testing/advanced.txt.Jozef
Backport of 6993e1bf6dff04b6e3ab284b154397b341463b50 from main
2021-03-05[3.2.x] Fixed #32507 -- Added link to assertHTMLEqual() in assertInHTML() docs.Jacob Walls
Backport of 286fb73b6962d197ed0cf041755fb724cfe08600 from master
2021-02-26[3.2.x] Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.Jacob Walls
Backport of 0c7e880e13b837dd76276c04ebdc338bb76d1379 from master
2021-02-24[3.2.x] Refs #31811 -- Corrected DiscoverRunner.setup_databases() signature.Mariusz Felisiak
Accidentally changed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915. Backport of af685b5f00a2a38ec596ff905d5f70455185b6d7 from master
2021-02-12[3.2.x] Fixed #32438 -- Fixed typo in docs/topics/testing/tools.txt.David Smith
Backport of e412b288455dd3ea6f1d65c8ec5d01751e489976 from master
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-04Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.Carlton Gibson
2020-10-18Fixed typo in docs/topics/testing/tools.txt.Jacob Walls
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-09-03Fixed #31979 -- Made django.test.utils.setup_databases()'s time_keeper ↵Jon Dufresne
argument optional.
2020-08-13Refs #31811 -- Added optional timing outputs to the test runner.Ahmad A. Hussein
2020-07-13Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson
2020-07-10Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.ovkulkarni
2020-07-10Refs #27430 -- Added buffer argument to DiscoverRunner docs.Mariusz Felisiak
2020-07-10Refs #30676 -- Added pdb argument to DiscoverRunner docs.Mariusz Felisiak
2020-07-04Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.Jacob Walls
2020-05-15Fixed #31395 -- Made setUpTestData enforce in-memory data isolation.Simon Charette
Since it's introduction in Django 1.8 setUpTestData has been suffering from a documented but confusing caveat due to its sharing of attributes assigned during its execution with all test instances. By keeping track of class attributes assigned during the setUpTestData phase its possible to ensure only deep copies are provided to test instances on attribute retreival and prevent manual setUp gymnastic to work around the previous lack of in-memory data isolation. Thanks Adam Johnson for the extensive review.
2020-05-13Removed versionadded/changed annotations for 3.0.Mariusz Felisiak
2020-04-28Fixed broken links in docs.Mariusz Felisiak
2020-03-26Clarified async documentation.Adam Johnson
2020-03-18Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin
This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
2020-02-13Fixed #31250 -- Ignored processing instructions in ↵yura
assertXMLEqual()/assertXMLNotEqual().
2020-02-07Refs #31055 -- Made DiscoverRunner skip running system checks on unused test ↵Simon Charette
databases.
2020-01-27Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz
2019-12-20Added example of assertNumQueries() with "using" kwarg in testing topics docs.Garry Polley
2019-12-18Corrected some typos in documentation.Hasan Ramezani
2019-12-04Fixed #20456 -- Added example of directly testing CBVs in topics docs.Felipe Lee
2019-11-26Used :ticket: role in all tickets links.Sergey Fedoseev
2019-10-18Fixed #27391 -- Implemented SimpleTestCase.debug().Pavel Savchenko
debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred.
2019-10-08Fixed #28790 -- Doc'd how to avoid running certain test classes in parallel.Caio Ariede
2019-09-10Refs #28478 -- Removed support for TestCase's allow_database_queries and ↵Mariusz Felisiak
multi_db per deprecation timeline.
2019-09-10Removed versionadded/changed annotations for 2.2.Mariusz Felisiak
2019-09-06Fixed #30573 -- Rephrased documentation to avoid words that minimise the ↵Tobias Kunze
involved difficulty. This patch does not remove all occurrences of the words in question. Rather, I went through all of the occurrences of the words listed below, and judged if they a) suggested the reader had some kind of knowledge/experience, and b) if they added anything of value (including tone of voice, etc). I left most of the words alone. I looked at the following words: - simply/simple - easy/easier/easiest - obvious - just - merely - straightforward - ridiculous Thanks to Carlton Gibson for guidance on how to approach this issue, and to Tim Bell for providing the idea. But the enormous lion's share of thanks go to Adam Johnson for his patient and helpful review.
2019-08-21Fixed broken links and redirects in documentation.François Freitag
Removed reference to custom builds, feature removed in https://github.com/openlayers/openlayers/commit/8e6b3bba994f5908e51c492ac314240863178789.
2019-05-24Fixed #30497 -- Ignored document type in assertXMLEqual()/assertXMLNotEqual().Caio Ariede
2019-05-24Doc'd that assertXMLEqual()/assertXMLNotEqual() ignores XML declaration and ↵Caio Ariede
comments.
2019-05-09Refs #30399 -- Made assertHTMLEqual normalize character and entity references.Jon Dufresne
2019-04-30Fixed #30245 -- Added -k option to DiscoverRunner.François Freitag
2019-04-18Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, ↵Ramiro Morales
comments and hints.
2019-03-05Doc'd the use of --noinput for test database handling.Samuel Gaist
2019-02-20Fixed #18707 -- Added support for the test client to return 500 responses.Jon Dufresne
2019-02-13Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis
Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2019-01-17Removed versionadded/changed annotations for 2.1.Tim Graham
2019-01-10Fixed #28478 -- Make DiscoverRunner skip creating unused test databases.Simon Charette
SimpleTestCase.databases makes it possible to determine the set of databases required to run the discovered tests.