5 changed files with 1239 additions and 14 deletions
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||
from typing import List, Mapping |
|||
|
|||
import pytest |
|||
from fastapi import FastAPI, Query |
|||
|
|||
|
|||
def test_invalid_sequence(): |
|||
with pytest.raises(AssertionError): |
|||
app = FastAPI() |
|||
|
|||
@app.get("/items/") |
|||
def read_items(q: Mapping[str, List[List[str]]] = Query(default=None)): |
|||
pass # pragma: no cover |
|||
Loading…
Reference in new issue