cheroot.testing module¶
Pytest fixtures and other helpers for doing testing by end-users.
- class cheroot.testing._TestClient(server)¶
Bases:
object
- get_connection()¶
- request(uri, method='GET', headers=None, http_conn=None, protocol='HTTP/1.1')¶
- cheroot.testing._get_conn_data(bind_addr)¶
- cheroot.testing._probe_ipv6_sock(interface)¶
- cheroot.testing.cheroot_server(server_factory)¶
Set up and tear down a Cheroot server instance.
- cheroot.testing.get_server_client(server)¶
Create and return a test client for the given server.
- cheroot.testing.native_server()¶
Set up and tear down a Cheroot HTTP server instance.
- cheroot.testing.wsgi_server()¶
Set up and tear down a Cheroot WSGI server instance.