Skip to content

Commit a65ed87

Browse files
committed
Fix issues with 4c47081
1 parent 4c47081 commit a65ed87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_validation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pydantic import BaseModel
99
from pydantic.dataclasses import dataclass as pydantic_dataclass
1010
from pydantic.functional_validators import BeforeValidator
11-
from quart import Quart, redirect, websocket
11+
from quart import Quart, redirect, Response, websocket
1212
from quart.datastructures import FileStorage
1313
from quart.views import View
1414

@@ -218,7 +218,7 @@ async def test_response_validation_of_response() -> None:
218218
@app.route("/")
219219
@validate_response(PyItem)
220220
async def item() -> ResponseReturnValue:
221-
return Response(200)
221+
return Response(b"", status=200)
222222

223223
test_client = app.test_client()
224224
response = await test_client.get("/")

0 commit comments

Comments
 (0)