summaryrefslogtreecommitdiff
path: root/docs/topics/testing
AgeCommit message (Collapse)Author
2015-12-01[1.9.x] Fixed #25778 -- Updated docs links to use https when available.Jon Dufresne
Backport of 7aabd6238028f4bb78d0687bbccc97bcf634e28b from master
2015-11-16[1.9.x] Fixed #25755 -- Unified spelling of "website".Agnieszka Lasyk
Backport of 1f8dad69158a96d0649d321ce08ecc9c0465f962 from master
2015-11-07[1.9.x] Fixed #25290 -- Warned against modifying objects created in ↵Tim Graham
setUpTestData() in tests. Backport of 81006b9657534a21c3eadb2bc4a87c46db54c099 from master
2015-10-30[1.9.x] Added class-based view example to RequestFactory example.bee_keeper
Backport of a17216646adaaa909fe52a4e974b56b4f094fc72 from master
2015-10-28[1.9.x] Made LiveServerTestCase example use StaticLiveServerTestCase.Tim Graham
Backport of 6b5ae92927cb69e8709ab2bb05f6721a7cd37a3c from master
2015-10-23[1.9.x] Clarified that the test client response content attribute is bytes.薛丞宏
Backport of 484edc81c1ebd195c333f3ea8d3f9ca882a17837 from master
2015-10-22[1.9.x] Refs #24622 -- Documented alternatives to some test response ↵Benjamin Wohlwend
attributes when using alternative template engines. Backport of 2b9eed41fa26537d1af4f818c6e4296ce3305b01 from master
2015-09-25[1.9.x] Fixed #25451 -- Added advice about organizing tests.Tim Graham
Backport of 53e89ce2e71411ff9d1c3fd6f2b10d052a4aeace from master
2015-09-09Allowed a port range for the liveserver by default.Aymeric Augustin
This is required for running tests in parallel.
2015-09-05Updated references to the TEST_* database settings.Aymeric Augustin
They were removed in Django 1.9. I could leave the reference to TEST_DEPENDENCIES in the 1.2.4 release notes because the link points to the right location and the name was accurate at the time.
2015-08-24Fixed #23727 -- Inhibited the post_migrate signal when using ↵Tommy Beadle
serialized_rollback. When using a TransactionTestCase with serialized_rollback=True, after creating the database and running its migrations (along with emitting the post_migrate signal), the contents of the database are serialized to _test_serialized_contents. After the first test case, _fixture_teardown() would flush the tables but then the post_migrate signal would be emitted and new rows (with new PKs) would be created in the django_content_type table. Then in any subsequent test cases in a suite, _fixture_setup() attempts to deserialize the content of _test_serialized_contents, but these rows are identical to the rows already in the database except for their PKs. This causes an IntegrityError due to the unique constraint in the django_content_type table. This change made it so that in the above scenario the post_migrate signal is not emitted after flushing the tables, since it will be repopulated during fixture_setup().
2015-08-19Fixed style issues in testing docsMarkus Holtermann
2015-08-18Used consistent capitalization and hyphenation of "class-based views" in docs.Anton Strogonoff
2015-08-08Updated Wikipedia links to use httpsClaude Paroz
2015-07-31Clarified assertRaisesMessage() behavior with respect to the message.Tim Graham
2015-07-30Fixed #25190 -- Deprecated callable_obj parameter to assertRaisesMessage().Tim Graham
Thanks Aymeric Augustin for review.
2015-07-27Fixed #25159 -- Removed brackets from class/function/method signatures in docs.Tim Graham
Thanks hellbeast for the initial patch.
2015-07-01Fixed #20916 -- Added Client.force_login() to bypass authentication.Jon Dufresne
2015-06-16Refs #24987 -- Documented that Client.login() rejects inactive users.Tim Graham
2015-06-12Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from classMoritz Sichert
2015-05-25Fixed #24773 -- Added a json() method on test client responses.Andy McKay
2015-05-20Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.Simon Charette
Thanks to Tim and Anssi for the review.
2015-05-18Added docs for assertRaisesMessage as context manager.Tim Graham
2015-05-09Fixed typo in docs/topics/testing/tools.txtIan Foote
2015-04-25Fixed a typo and formatting consistency in testing tools docsAdam Zapletal
I changed "appears" to "appear" and emphasized the word "not" to match the rest of the document.
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-02-22Fixed #24358 -- Corrected code-block directives for console sessions.Sean Wang
2015-02-17Added an import to docs/topics/testing/advanced.txt example.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-02-01Removed versionadded/changed notes for 1.7.Tim Graham
2015-01-18Removed support for syncing apps without migrations per deprecation timeline.Tim Graham
Kept support for creating models without migrations when running tests (especially for Django's test suite).
2015-01-17Removed support for custom SQL per deprecation timeline.Tim Graham
2015-01-17Removed support for initial_data fixtures per deprecation timeline.Tim Graham
2015-01-17Removed django.utils.unittest per deprecation timeline.Tim Graham
2015-01-16Fixed a typo in the test responses docs.Rick Hutcheson
2015-01-12Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn
Added a --debug-sql option for tests and runtests.py which outputs the SQL logger for failing tests. When combined with --verbosity=2, it also outputs the SQL for passing tests. Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and discussion.
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-28Deprecated TEMPLATE_LOADERS.Aymeric Augustin
2014-12-27Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt.Tim Graham
2014-12-04Fixed #23911 -- Added support for buffer file uploads in the test clientThomas Tanner
2014-12-03Fixed #20392 -- Added TestCase.setUpTestData()Thomas Chaumeny
Each TestCase is also now wrapped in a class-wide transaction.
2014-11-24Fixed #23742 -- Added an option to reverse tests order.wrwrwr
This is useful for debugging side effects affecting tests that are usually executed before a given test. Full suite and pair tests sort cases more or less deterministically, thus some test cross-dependencies are easier to reveal by reversing the order. Thanks Preston Timmons for the review.
2014-11-24Updated testing documentation following 498ae3a36069e2dThomas Chaumeny
- commit/rollback are no longer replaced by nop - the warning about not using TestCase when testing transactional behavior belongs to TestCase section, not TransactionTestCase
2014-11-24Fixed #23543 -- Added docs on testing management command output.Danilo Bargen
2014-11-21Fixed #23778 -- Added a doc section on using the Django runner for reusable ↵Stanislas Guerra
apps.
2014-11-04Added missing docs to DiscoverRunner for keepdb option; refs #20550.Tim Graham
2014-11-03Fixed #21281 -- Made override_settings act at class level when used as a ↵Thomas Chaumeny
TestCase decorator.
2014-11-01Fixed #23744 -- Fixed typo in selenium testing example.Tim Graham
Thanks djbug for the report.
2014-10-31Added a warning about direct settings manipulation in tests.Tim Graham
Thanks Thomas Chaumeny for the initial patch.
2014-10-28Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala
Thanks KevinEtienne for the suggestion.