Skip to content

Commit 4a97b86

Browse files
committed
releasenotes: add release notes about the new fixtures
1 parent d27e4c6 commit 4a97b86

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
features:
3+
- |
4+
Added a new session scoped fixture ``make_httpserver`` which creates the
5+
object for the ``httpserver`` fixture. It can be overridden to add further
6+
customizations and it must yield a ``HTTPServer`` object - see
7+
``pytest_plugin.py`` for an implementation. As this fixture is session
8+
scoped, it will be called only once when the first test using httpserver is
9+
started. This addition also deprecates the use of ``PluginHTTPServer`` which was
10+
used in earlier versions as a way to customize server object creation.
11+
``PluginHTTPServer`` can still be used but it may be subject to deprecation
12+
in the future.
13+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
features:
3+
- |
4+
Added a new session scoped fixture ``httpserver_ssl_context`` which provides
5+
the SSL context for the server. By default it returns ``None``, so SSL is
6+
not enabled, but can be overridden to return a valid ``ssl.SSLContext``
7+
object which will be used for SSL connections. See test_ssl.py for example.
8+

0 commit comments

Comments
 (0)