()
| 338 | |
| 339 | |
| 340 | async def test_set_cookie() -> None: |
| 341 | app = Quart(__name__) |
| 342 | |
| 343 | @app.route("/", methods=["GET"]) |
| 344 | async def echo() -> Response: |
| 345 | return jsonify({"foo": request.cookies.get("foo")}) |
| 346 | |
| 347 | client = Client(app) |
| 348 | client.set_cookie("localhost", "foo", "bar") |
| 349 | response = await client.get("/") |
| 350 | assert (await response.get_json()) == {"foo": "bar"} |
| 351 | |
| 352 | |
| 353 | async def test_websocket_bad_request() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…