mirror of https://github.com/tiangolo/fastapi.git
enable test for python37
This commit is contained in:
parent
6185a92aee
commit
38ac25241b
|
|
@ -1,5 +1,3 @@
|
|||
from typing import Annotated
|
||||
|
||||
from fastapi import FastAPI, File, Form
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
|
|
@ -7,7 +5,7 @@ app = FastAPI()
|
|||
|
||||
|
||||
@app.post("/files/")
|
||||
async def create_file(token: Annotated[str, Form()], file: Annotated[bytes, File()]):
|
||||
async def create_file(token: str = Form(), file: bytes = File()):
|
||||
return {
|
||||
"file_size": len(file),
|
||||
"token": token,
|
||||
|
|
|
|||
Loading…
Reference in New Issue