2 changed files with 23 additions and 8 deletions
@ -0,0 +1,15 @@ |
|||||
|
from typing import Mapping, List |
||||
|
|
||||
|
import pytest |
||||
|
from fastapi import FastAPI, Query |
||||
|
from pydantic import BaseModel |
||||
|
|
||||
|
|
||||
|
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