()
| 130 | |
| 131 | |
| 132 | def 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 | |
| 141 | def test_wsgi_generator_empty(): |
nothing calls this directly
no test coverage detected