|
| 1 | +============= |
| 2 | +Release Notes |
| 3 | +============= |
| 4 | + |
| 5 | +.. _Release Notes_0.3.1-10: |
| 6 | + |
| 7 | +0.3.1-10 |
| 8 | +======== |
| 9 | + |
| 10 | +.. _Release Notes_0.3.1-10_New Features: |
| 11 | + |
| 12 | +New Features |
| 13 | +------------ |
| 14 | + |
| 15 | +- Besides bytes and string, dict and MultiDict objects can be specified as query_string. |
| 16 | + When these objects are used, the query string gets parsed into a dict (or MultiDict), |
| 17 | + and comparison is made accordingly. This enables the developer to ignore the order of |
| 18 | + the keys in the query_string when expecting a request. |
| 19 | + |
| 20 | + |
| 21 | +.. _Release Notes_0.3.1-10_Bug Fixes: |
| 22 | + |
| 23 | +Bug Fixes |
| 24 | +--------- |
| 25 | + |
| 26 | +- Fixed issue \#16 by converting string object passed as query_string |
| 27 | + to bytes which is the type of the query string in werkzeug, and also allowing |
| 28 | + bytes as the parameter. |
| 29 | + |
| 30 | + |
| 31 | +.. _Release Notes_0.3.1-10_Other Notes: |
| 32 | + |
| 33 | +Other Notes |
| 34 | +----------- |
| 35 | + |
| 36 | +- Add more files to source distribution (sdist). It now contains tests, |
| 37 | + assets, examples and other files. |
| 38 | + |
| 39 | + |
| 40 | +.. _Release Notes_0.3.1: |
| 41 | + |
| 42 | +0.3.1 |
| 43 | +===== |
| 44 | + |
| 45 | +.. _Release Notes_0.3.1_New Features: |
| 46 | + |
| 47 | +New Features |
| 48 | +------------ |
| 49 | + |
| 50 | +- Add httpserver_listen_address fixture which is used to set up the bind address and port |
| 51 | + of the server. Setting bind address and port is possible by overriding this fixture. |
| 52 | + |
| 53 | + |
| 54 | +.. _Release Notes_0.3.0: |
| 55 | + |
| 56 | +0.3.0 |
| 57 | +===== |
| 58 | + |
| 59 | +.. _Release Notes_0.3.0_New Features: |
| 60 | + |
| 61 | +New Features |
| 62 | +------------ |
| 63 | + |
| 64 | +- Support ephemeral port. This can be used by specify 0 as the port number |
| 65 | + to the HTTPServer instance. In such case, an unused port will be picked up |
| 66 | + and the server will start listening on that port. Querying the port attribute |
| 67 | + after server start reveals the real port where the server is actually listening. |
| 68 | + |
| 69 | +- Unify request functions of the HTTPServer class to make the API more straightforward to use. |
| 70 | + |
| 71 | + |
| 72 | +.. _Release Notes_0.3.0_Upgrade Notes: |
| 73 | + |
| 74 | +Upgrade Notes |
| 75 | +------------- |
| 76 | + |
| 77 | +- The default port has been changed to 0, which results that the server will be staring |
| 78 | + on an ephemeral port. |
| 79 | + |
| 80 | +- The following methods of HTTPServer have been changed in a backward-incompatible way: |
| 81 | + * :py:meth:`pytest_httpserver.HTTPServer.expect_request` becomes a general function accepting handler_type parameter so it can create any kind of request handlers |
| 82 | + * :py:meth:`pytest_httpserver.HTTPServer.expect_oneshot_request` no longer accepts the ordered parameter, and it creates an unordered oneshot request handler |
| 83 | + * :py:meth:`pytest_httpserver.HTTPServer.expect_ordered_request` is a new method craeting an ordered request handler |
| 84 | + |
| 85 | + |
| 86 | +.. _Release Notes_0.2.2: |
| 87 | + |
| 88 | +0.2.2 |
| 89 | +===== |
| 90 | + |
| 91 | +.. _Release Notes_0.2.2_New Features: |
| 92 | + |
| 93 | +New Features |
| 94 | +------------ |
| 95 | + |
| 96 | +- Make it possible to intelligently compare headers. To accomplish that |
| 97 | + HeaderValueMatcher was added. It already contains logic to compare |
| 98 | + unknown headers and authorization headers. Patch by Roman Inflianskas. |
| 99 | + |
| 100 | + |
| 101 | +.. _Release Notes_0.2.1: |
| 102 | + |
| 103 | +0.2.1 |
| 104 | +===== |
| 105 | + |
| 106 | +.. _Release Notes_0.2.1_Prelude: |
| 107 | + |
| 108 | +Prelude |
| 109 | +------- |
| 110 | + |
| 111 | +Minor fixes in setup.py and build environment. No actual code change in library .py files. |
| 112 | + |
| 113 | + |
| 114 | +.. _Release Notes_0.2: |
| 115 | + |
| 116 | +0.2 |
| 117 | +=== |
| 118 | + |
| 119 | +.. _Release Notes_0.2_New Features: |
| 120 | + |
| 121 | +New Features |
| 122 | +------------ |
| 123 | + |
| 124 | +- When using pytest plugin, specifying the bind address and bind port can also be possible via environment |
| 125 | + variables. Setting PYTEST_HTTPSERVER_HOST and PYTEST_HTTPSERVER_PORT will change the bind host and bind |
| 126 | + port, respectively. |
| 127 | + |
| 128 | +- SSL/TLS support added with using the SSL/TLS support provided by werkzeug. |
| 129 | + This is based on the ssl module from the standard library. |
| 130 | + |
| 131 | + |
| 132 | +.. _Release Notes_0.1.1: |
| 133 | + |
| 134 | +0.1.1 |
| 135 | +===== |
| 136 | + |
| 137 | +.. _Release Notes_0.1.1_Prelude: |
| 138 | + |
| 139 | +Prelude |
| 140 | +------- |
| 141 | + |
| 142 | +Minor fixes in setup.py and build environment. No actual code change in library .py files. |
| 143 | + |
| 144 | + |
| 145 | +.. _Release Notes_0.1: |
| 146 | + |
| 147 | +0.1 |
| 148 | +=== |
| 149 | + |
| 150 | +.. _Release Notes_0.1_Prelude: |
| 151 | + |
| 152 | +Prelude |
| 153 | +------- |
| 154 | + |
| 155 | +First release |
| 156 | + |
0 commit comments