File: new-fixture-for-httpserver-making-98afa235d3283831.yaml

package info (click to toggle)
pytest-httpserver 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 908 kB
  • sloc: python: 2,382; makefile: 77; sh: 21
file content (12 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
---
features:
  - |
    Added a new session scoped fixture ``make_httpserver`` which creates the
    object for the ``httpserver`` fixture. It can be overridden to add further
    customizations and it must yield a ``HTTPServer`` object - see
    ``pytest_plugin.py`` for an implementation. As this fixture is session
    scoped, it will be called only once when the first test using httpserver is
    started. This addition also deprecates the use of ``PluginHTTPServer`` which was
    used in earlier versions as a way to customize server object creation.
    ``PluginHTTPServer`` can still be used but it may be subject to deprecation
    in the future.