Ville Skyttä
fef3f50e31
[1.9.x] Normalized "an SQL" spelling.
...
Backport of 575a9a791e62de7550761970dc6797271d956c57 from master
2016-05-03 19:31:07 -04:00
Vasiliy Faronov
cb33e553ee
[1.9.x] Fixed #26567 -- Updated references to obsolete RFC2616.
...
Didn't touch comments where it wasn't obvious that the code adhered to
the newer standard.
Backport of ac77c55bc5fc54cd763a7ae426784650a8cc97c9 from master
2016-05-03 11:16:27 -04:00
Tim Graham
8a135cca4e
[1.9.x] Fixed #26554 -- Updated docs URLs to readthedocs.io
...
Backport of f945fb24a31737c6625205a8cd90eabdf1c33584 from master
2016-04-28 10:15:23 -04:00
eltronix
146ac71a21
[1.9.x] Fixed typo in docs/topics/testing/tools.txt
...
Backport of 8ccb8ff453f8c3ba297bd8e108d81d76769bf8d2 from master
2016-04-27 08:02:14 -04:00
eltronix
4afead50cb
[1.9.x] Fixed typo in docs/topics/testing/tools.txt
...
Backport of 75c5e547b5350b167aa8f30882c83446d86e8f2b from master
2016-04-26 18:19:16 -04:00
Andrew Abraham
2ed2b508ce
[1.9.x] Fixed DiscoverRunner failfast parameter default in docs.
...
Backport of f2d9caa625084b0b96d60153f6b26ba43a1ab835 from master
2016-03-15 18:35:02 -04:00
Tim Graham
d7881bfa5c
[1.9.x] Refs #26270 -- Reorganized TestCase docs.
...
Backport of 7a7e403325427642905a5b3e26931c2b8e92d4b1 from master
2016-02-25 08:05:14 -05:00
Tim Graham
bd9dc810eb
[1.9.x] Removed docs of deprecated SimpleTestCase warnings behavior.
...
Removed in Django 1.7 (4f6be9a0c43050500af598527e1453d27c5c5b85).
Backport of 6637cd0ef2fd5f063df82000c18c64c246bb6e1b from master
2016-02-24 09:59:16 -05:00
Johannes Linke
6a0832dacb
[1.9.x] Fixed #26111 -- Clarified that fixtures are loaded once per TestCase.
...
Backport of 02430ef19d9a7d3663cbc1cf66438e9e86b919d1 from master
2016-02-11 18:54:27 -05:00
Tim Graham
a9fbf0735a
[1.9.x] Fixed #26124 -- Added missing code formatting to docs headers.
...
Backport of a6ef025dfb2a1d1bd23893408eef6d066fb506d9 from master
2016-02-01 11:54:26 -05:00
Tim Graham
d7a6086825
[1.9.x] Fixed #23868 -- Added support for non-unique django-admin-options in docs.
...
Also documented missing short command line options to fix #24134 . This bumps
the minimum sphinx version required to build the docs to 1.3.4.
Thanks Simon Charette for review.
Backport of e519aab43a419589e92fe284e4ce2f2e034aec6a from master
2016-02-01 11:25:42 -05:00
Tim Graham
41e059de7c
[1.9.x] Fixed #26132 -- Discouraged use of TransactionTestCase.fixtures.
...
Backport of b0b45f9a8373f47e96ef6c22d254c984d3b6b3c0 from master
2016-01-25 06:52:44 -05:00
Elif T. Kus
5dceb1f078
[1.9.x] Fixed #26020 -- Normalized header stylings in docs.
...
Backport of bca9faae95db2a92e540fbd08505c134639916fe from master
2016-01-22 12:18:24 -05:00
Tim Graham
c0d8d5f98c
[1.9.x] Fixed #25948 -- Added guidelines for SimpleTestCase.assertRaisesMessage() usage.
...
Backport of 77f50c9cfc8b33bf86394816cde183e656ba28cd from master
2015-12-23 07:31:14 -05:00
Tim Graham
9f3ce6d987
[1.9.x] Refs #25899 -- Improved visibility of TEST database settings in testing docs.
...
Backport of 738bda8a6feea95d07b73246365e75b3d25e3466 from master
2015-12-11 08:07:43 -05:00
Tim Graham
35b5e11a98
[1.9.x] Fixed #25860 -- Documented a transaction leak possiblity in TestCase.
...
Thanks Jonas Haag for report and review.
Backport of a5619f7ed3bc2ca07b428fa0abfaaff088378f48 from master
2015-12-07 18:33:51 -05:00
Jon Dufresne
bf76cf07e0
[1.9.x] Fixed #25778 -- Updated docs links to use https when available.
...
Backport of 7aabd6238028f4bb78d0687bbccc97bcf634e28b from master
2015-12-01 08:03:16 -05:00
Agnieszka Lasyk
b3389956c9
[1.9.x] Fixed #25755 -- Unified spelling of "website".
...
Backport of 1f8dad69158a96d0649d321ce08ecc9c0465f962 from master
2015-11-16 06:44:46 -05:00
Tim Graham
1eb2ff3ff7
[1.9.x] Fixed #25290 -- Warned against modifying objects created in setUpTestData() in tests.
...
Backport of 81006b9657534a21c3eadb2bc4a87c46db54c099 from master
2015-11-07 20:33:49 +01:00
bee_keeper
7b03595489
[1.9.x] Added class-based view example to RequestFactory example.
...
Backport of a17216646adaaa909fe52a4e974b56b4f094fc72 from master
2015-10-30 13:14:20 -04:00
Tim Graham
411b8da362
[1.9.x] Made LiveServerTestCase example use StaticLiveServerTestCase.
...
Backport of 6b5ae92927cb69e8709ab2bb05f6721a7cd37a3c from master
2015-10-28 13:51:22 -04:00
薛丞宏
2eab4acb3e
[1.9.x] Clarified that the test client response content attribute is bytes.
...
Backport of 484edc81c1ebd195c333f3ea8d3f9ca882a17837 from master
2015-10-23 14:27:20 -04:00
Benjamin Wohlwend
c367abb11b
[1.9.x] Refs #24622 -- Documented alternatives to some test response attributes when using alternative template engines.
...
Backport of 2b9eed41fa26537d1af4f818c6e4296ce3305b01 from master
2015-10-22 14:11:22 -04:00
Tim Graham
f2f4f1cfff
[1.9.x] Fixed #25451 -- Added advice about organizing tests.
...
Backport of 53e89ce2e71411ff9d1c3fd6f2b10d052a4aeace from master
2015-09-25 07:15:50 -04:00
Aymeric Augustin
326bc0955b
Allowed a port range for the liveserver by default.
...
This is required for running tests in parallel.
2015-09-09 23:01:16 +02:00
Aymeric Augustin
6d1110f2f0
Updated references to the TEST_* database settings.
...
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-09-05 19:21:22 +02:00
Tommy Beadle
d3fdaf907d
Fixed #23727 -- Inhibited the post_migrate signal when using 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-24 08:59:20 -04:00
Markus Holtermann
f33607ce0b
Fixed style issues in testing docs
2015-08-19 12:18:10 +10:00
Anton Strogonoff
20787b5c29
Used consistent capitalization and hyphenation of "class-based views" in docs.
2015-08-18 19:07:10 -04:00
Claude Paroz
64982cc2fb
Updated Wikipedia links to use https
2015-08-08 12:02:32 +02:00
Tim Graham
6bb4f07372
Clarified assertRaisesMessage() behavior with respect to the message.
2015-07-31 09:19:27 -04:00
Tim Graham
d27e0f04a6
Fixed #25190 -- Deprecated callable_obj parameter to assertRaisesMessage().
...
Thanks Aymeric Augustin for review.
2015-07-30 10:12:41 -04:00
Tim Graham
87d55081ea
Fixed #25159 -- Removed brackets from class/function/method signatures in docs.
...
Thanks hellbeast for the initial patch.
2015-07-27 10:32:47 -04:00
Jon Dufresne
b44dee16e6
Fixed #20916 -- Added Client.force_login() to bypass authentication.
2015-07-01 13:01:08 -04:00
Tim Graham
fbc618c13c
Refs #24987 -- Documented that Client.login() rejects inactive users.
2015-06-16 12:46:23 -04:00
Moritz Sichert
296919e7a5
Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from class
2015-06-12 17:44:54 -04:00
Andy McKay
4525a0c466
Fixed #24773 -- Added a json() method on test client responses.
2015-05-25 10:42:30 -04:00
Simon Charette
c15b0c2792
Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.
...
Thanks to Tim and Anssi for the review.
2015-05-20 12:50:41 -04:00
Tim Graham
a0175724b0
Added docs for assertRaisesMessage as context manager.
2015-05-18 10:04:18 -04:00
Ian Foote
c21b832c12
Fixed typo in docs/topics/testing/tools.txt
2015-05-09 18:03:25 -04:00
Adam Zapletal
0cf7477ed8
Fixed a typo and formatting consistency in testing tools docs
...
I changed "appears" to "appear" and emphasized the word "not" to match
the rest of the document.
2015-04-25 12:22:53 +02:00
Claude Paroz
a0c2eb46dd
Fixed #23960 -- Removed http.fix_location_header
...
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-18 18:22:50 +01:00
Sean Wang
eba6dff581
Fixed #24358 -- Corrected code-block directives for console sessions.
2015-02-22 09:35:39 -05:00
Tim Graham
32b67b3fd1
Added an import to docs/topics/testing/advanced.txt example.
2015-02-17 13:53:20 -05:00
darkryder
9ec8aa5e5d
Fixed #24149 -- Normalized tuple settings to lists.
2015-02-03 14:59:45 -05:00
Tim Graham
c79faae761
Removed versionadded/changed notes for 1.7.
2015-02-01 21:02:40 -05:00
Tim Graham
7e8cf74dc7
Removed support for syncing apps without migrations per deprecation timeline.
...
Kept support for creating models without migrations when running tests
(especially for Django's test suite).
2015-01-18 15:58:06 -05:00
Tim Graham
4aa089a9a9
Removed support for custom SQL per deprecation timeline.
2015-01-17 10:16:06 -05:00
Tim Graham
67235fd4ef
Removed support for initial_data fixtures per deprecation timeline.
2015-01-17 09:59:25 -05:00
Tim Graham
b952c3fc60
Removed django.utils.unittest per deprecation timeline.
2015-01-17 07:32:22 -05:00