enable test for python37

This commit is contained in:
nash.jung 2023-04-19 21:43:22 +09:00
parent 6185a92aee
commit 38ac25241b
1 changed files with 1 additions and 3 deletions

View File

@ -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,