| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-12-19 | Fixed #30015 -- Ensured request body is properly consumed for keep-alive ↵ | Konstantin Alekseev | |
| connections. | |||
| 2018-11-10 | Fixed keep-alive support in manage.py runserver. | Florian Apolloner | |
| Ticket #25619 changed the default protocol to HTTP/1.1 but did not properly implement keep-alive. As a "fix" keep-alive was disabled in ticket #28440 to prevent clients from hanging (they expect the server to send more data if the connection is not closed and there is no content length set). The combination of those two fixes resulted in yet another problem: HTTP/1.1 by default allows a client to assume that keep-alive is supported unless the server disables it via 'Connection: close' -- see RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if the client receives a response from Django without 'Connection: close' and immediately sends a new request (on the same tcp connection) before our server closes the tcp connection, it will error out at some point because the connection does get closed a few milli seconds later. This patch fixes the mentioned issues by always sending 'Connection: close' if we cannot determine a content length. The code is inefficient in the sense that it does not allow for persistent connections when chunked responses are used, but that should not really cause any problems (Django does not generate those) and it only affects the development server anyways. Refs #25619, #28440. | |||
| 2017-10-13 | Refs #28440 -- Fixed server connection closing test on macOS. | Tom | |
| 2017-09-25 | Fixed #27857 -- Dropped support for Python 3.4. | Tim Graham | |
| 2017-09-12 | Fixed #28440 -- Fixed WSGIServer hang on responses without a Content-Length. | Tom | |
| Disabled keep-alive to fix the regression in e6065c7b8363202c5eb13ba10c97a8c24d014b45. | |||
| 2017-06-05 | Fixed ResourceWarnings in tests/servers/tests.py. | Jon Dufresne | |
| e.g. ResourceWarning: unclosed <socket.socket [closed] fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> | |||
| 2017-05-30 | Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses. | Robert Rollins | |
| Forwardport of 877d7b71ae952b3bc946e5187d6c23039a71614d from stable/1.11.x | |||
| 2017-02-23 | Fixed #25619 -- Made runserver serve with HTTP 1.1 protocol | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-09 | Fixed #20238 -- Added threading support to LiveServerTestCase. | Nadège Michel | |
| 2017-01-26 | Refs #23919 -- Replaced usage of django.utils.http utilities with Python ↵ | Claude Paroz | |
| equivalents Thanks Tim Graham for the review. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-20 | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | |
| These functions do nothing on Python 3. | |||
| 2017-01-19 | Refs #23919 -- Removed str() conversion of type and method __name__. | Simon Charette | |
| 2017-01-19 | Refs #23919 -- Removed obsolete contextlib.closing() calls (for Python 2). | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-19 | Fixed #22414 -- Ensured that LiveServerTestCase closes connections. | Chris Jerdonek | |
| 2016-06-23 | Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0. | Tim Graham | |
| 2016-06-16 | Fixed flake8 2.6 warnings. | Tim Graham | |
| 2016-01-02 | Refs #26011 -- Fixed AttributeError in test_port_bind test. | Marten Kenbeek | |
| 2015-12-31 | Fixed #26011 -- Prevented random LiveServerTestCase test failures on Windows. | Marten Kenbeek | |
| Prevented LiveServerTestCase from stealing ports used by concurrent processes on Windows. | |||
| 2015-07-06 | Fixed some unclosed objects in tests | Andriy Sokolovskiy | |
| 2015-06-12 | Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from class | Moritz Sichert | |
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2014-11-03 | Fixed #21281 -- Made override_settings act at class level when used as a ↵ | Thomas Chaumeny | |
| TestCase decorator. | |||
| 2014-04-06 | Fixed #21977 -- Deprecated SimpleTestCase.urls | Anubhav Joshi | |
| 2014-03-03 | Fixed many typos in comments and docstrings. | Rodolfo Carvalho | |
| Thanks Piotr Kasprzyk for help with the patch. | |||
| 2013-12-23 | Imported override_settings from its new location. | Aymeric Augustin | |
| 2013-11-02 | Fixing E302 Errors | Jason Myers | |
| Signed-off-by: Jason Myers <jason@jasonamyers.com> | |||
| 2013-09-22 | Fixed "Address already in use" from liveserver. | Florian Apolloner | |
| Our WSGIServer rewrapped the socket errors from server_bind into WSGIServerExceptions, which is used later on to provide nicer error messages in runserver and used by the liveserver to see if the port is already in use. But wrapping server_bind isn't enough since it only binds to the socket, socket.listen (which is called from server_activate) could also raise "Address already in use". Instead of overriding server_activate too I chose to just catch socket errors, which seems to make more sense anyways and should be more robust against changes in wsgiref. | |||
| 2013-09-05 | Took advantage of django.utils.six.moves.urllib.*. | Aymeric Augustin | |
| 2013-08-31 | Made django.test.testcases not depend on staticfiles contrib app. | Ramiro Morales | |
| Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase unittest TestCase subclass. Fixes #20739. | |||
| 2013-08-10 | Expand testing of Test LiveServerTestCase static files serving. | Ramiro Morales | |
| 2013-07-27 | Fixed a number of minor misspellings. | Julien Phalip | |
| 2013-06-21 | Fixed #20290 -- Allow override_settings to be nested | Oliver Beattie | |
| Refactored override_settings to store the underlying settings._wrapped value seen at runtime, not instantiation time. | |||
| 2013-06-10 | Defined available_apps in relevant tests. | Aymeric Augustin | |
| Fixed #20483. | |||
| 2013-02-26 | Renamed some tests and removed references to modeltests/regressiontests. | Florian Apolloner | |
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
