MCPcopy
hub / github.com/encode/httpx / test_wsgi_generator

Function test_wsgi_generator

tests/test_wsgi.py:132–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_wsgi_generator():
133 output = [b"", b"", b"Some content", b" and more content"]
134 transport = httpx.WSGITransport(app=application_factory(output))
135 client = httpx.Client(transport=transport)
136 response = client.get("http://www.example.org/")
137 assert response.status_code == 200
138 assert response.text == "Some content and more content"
139
140
141def test_wsgi_generator_empty():

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
application_factoryFunction · 0.85

Tested by

no test coverage detected