summaryrefslogtreecommitdiff
path: root/docs/topics/testing.txt
AgeCommit message (Collapse)Author
2012-12-21Fixed #19497 -- Refactored testing docs.Ramiro Morales
Thanks Tim Graham for the review and suggestions.
2012-12-18Fixed #17312 - Warned about database side effects in tests.Tim Graham
Thanks jcspray for the suggestion.
2012-12-16Replaced the test case hierarchy schema with a vector version.Aymeric Augustin
The OmniGraffle source file is included for future use.
2012-12-13Fixed #19462 -- Made assertQuerysetEqual detect undefined orderingAnssi Kääriäinen
If there are more than one values to compare against and the qs isn't ordered then assertQuerysetEqual will raise a ValueError.
2012-11-02Fixed #19167 - Added a warning regarding module-level database queriesTim Graham
Thanks Daniele Procida for the patch.
2012-10-30The timeout variable wasn't defined, which was a little confusing.Brent O'Connor
2012-10-30Fixed #17744 -- Reset default file storage with setting_changed signalClaude Paroz
2012-10-27Fixed #17787 -- Documented reset caches by setting_changed signalClaude Paroz
2012-10-11Fixed #16817 - Added a guide of code coverage to contributing docs.Tim Graham
Thanks Pedro Lima for the draft patch.
2012-10-10Fixed #4501 - Documented how to use coverage.py with Django tests.Tim Graham
Thanks krzysiumed for the draft patch.
2012-10-07Added section about URL reversion to URL mapper document.Ramiro Morales
2012-10-06Added assertXML[Not]Equal assertionsClaude Paroz
This is especially needed to compare XML when hash randomization is on, as attribute order may vary. Refs #17758, #19038. Thanks Taylor Mitchell for the initial patch, and Ian Clelland for review and cleanup.
2012-10-04Fixed #19051 - Fixed Selenium tearDownClass method; thanks glarrain for the ↵Tim Graham
report.
2012-09-26Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mailAdrien Lemaire
2012-09-22Fixed #18057 - Documented that caches are not cleared after each test; ↵Tim Graham
thanks guettli for the suggestion.
2012-09-20Fixed #18934 - Removed versionadded/changed annotations for Django 1.3Tim Graham
2012-08-27fix documentation testing of Selenium WebDriverWaitjuanpex
According to the documentation of Selenium, WebDriverWait class has no timeout parameter and using the code fails. http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/FluentWait.html#until%28com.google.common.base.Predicate%29
2012-07-24Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.Ramiro Morales
Previously, the flush was done before the test case execution and now it is performed after it. Other changes to the testing infrastructure include: * TransactionTestCase now doesn't reset autoincrement sequences either (previous behavior can achieved by using `reset_sequences`.) With this, no implicit such reset is performed by any of the provided TestCase classes. * New ordering of test cases: All unittest tes cases are run first and doctests are run at the end. THse changes could be backward-incompatible with test cases that relied on some kind of state being preserved between tests. Please read the relevant sections of the release notes and testing documentation for further details. Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi Kääriäinen for the feedback and Anssi for reviewing. This also fixes #12408.
2012-06-28Updated obsolete links in the documentationClaude Paroz
2012-06-09Added note about including fixtures hashing algorithmClaude Paroz
Refs #18157.
2012-06-09Fixed #18157 -- Documented that setting PASSWORD_HASHERS can speed up testsClaude Paroz
2012-06-07Removed references to changes made in 1.2.Aymeric Augustin
Thanks Florian Apolloner for the patch.
2012-06-07Fixed #16916 -- Documented default headers for the test client.Aymeric Augustin
Thanks sailorfred AT yahoo.com for the report and raulcd for the initial version of the patch.
2012-05-25Fixed #17371 -- Made the test client more flexibleAymeric Augustin
The OPTIONS, PUT and DELETE methods no longer apply arbitrary data encoding (in the query string or in the request body).
2012-05-05Fixed the syntax used for the Python repl examples in docs and docstrings.Alex Gaynor
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2012-03-31Removed documentation for SMTPConnection, which was removed at r15978.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31Fixed #17965 -- Definitely dropped support for Python 2.5. Thanks jonash for ↵Claude Paroz
the initial patch and Aymeric Augustin for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Use the class decorator syntax available in Python >= 2.6. Refs #17965.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-11Fixed a couple of typos in testing document.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-03Added a blurb about new SimpleTestCase class to release notes.Ramiro Morales
Also, tweaked the cross-referencing of `django.test` symbols. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-02Edited stuff from [17543] to [17629]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-27Clarified the fact that the signal_changed signal isn't used by Django ↵Aymeric Augustin
itself (yet). Refs #17787. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-27Added a diagram of the hierarchy of our TestCase subclasses to the testing docs.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-15Fixed #17652 -- Removed all mentions to Windmill from the docs as that ↵Julien Phalip
project doesn't integrate well with Django at this time. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-05Fixed #17571 - Fixed documentation of skipUnlessDBFeature; thanks EnTeQuAk ↵Timo Graham
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03Made a bunch more edits up until [17418]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and ↵Carl Meyer
converted Django tests to use them where appropriate. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #17604 - Added context-manager capability to assertTemplateUsed and ↵Carl Meyer
assertTemplateNotUsed. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30Edited testing.txt changes from [17289]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30Edited testing.txt changes from [17283]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-29Added the ability to specify multiple ports available for the ↵Julien Phalip
`LiveServerTestCase` WSGI server. This allows multiple processes to run the tests simultaneously and is particularly useful in a continuous integration context. Many thanks to Aymeric Augustin for the suggestions and feedback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-29Indicated the exact version that is required to use the "WebDriverWait" ↵Julien Phalip
example in the testing doc. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-28Added the `wait_until()` and `wait_loaded_tag()` methods to ↵Julien Phalip
`AdminSeleniumWebDriverTestCase` to prevent some concurrency issues with in-memory SQLite database access in the admin Selenium tests. Thanks to Florian Apolloner, Anssi Kääriäinen and Aymeric Augustin for their help debugging this problem. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Fixed #2879 -- Added support for the integration with Selenium and other ↵Julien Phalip
in-browser testing frameworks. Also added the first Selenium tests for `contrib.admin`. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-19Added note about assertFieldOutput being new in 1.4.Ramiro Morales
Thanks dpifke for report and patch. Fixes #17433 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17Fixed #17364 -- Fixed typos in topics/testing.txt. Thanks, movieladyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Fixed #17248 -- Added a missing versionadded directive for ↵Aymeric Augustin
TestCase.assertRaisesMessage. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-08Fixed #17011 - Made override_settings modify a decorated class in-place ↵Carl Meyer
rather than creating a dynamic subclass, so as to avoid infinite recursion when used with super(). Thanks jsdalton for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16942 bcc190cf-cafb-0310-a4f2-bffc1f526a37