You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
404 B

from typing import List
from fastapi import FastAPI
from fastapi.testclient import TestClient
from pydantic import BaseModel, v1
class Model(v1.BaseModel):
name: str
app = FastAPI()
@app.get("/valid", response_model=Model)
def valid1():
pass
client = TestClient(app)
def test_path_operations():
response = client.get("/valid")
assert response.status_code == 200, response.text