pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
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.
13 lines
318 B
13 lines
318 B
from typing import Dict, List
|
|
|
|
import pytest
|
|
from fastapi import FastAPI, Query
|
|
|
|
|
|
def test_invalid_sequence():
|
|
with pytest.raises(AssertionError):
|
|
app = FastAPI()
|
|
|
|
@app.get("/items/")
|
|
def read_items(q: Dict[str, List[List[str]]] = Query(default=None)):
|
|
pass # pragma: no cover
|
|
|