2 changed files with 8 additions and 8 deletions
@ -1,15 +1,13 @@ |
|||||
from typing import Mapping, List |
from typing import List, Mapping |
||||
|
|
||||
import pytest |
import pytest |
||||
from fastapi import FastAPI, Query |
from fastapi import FastAPI, Query |
||||
from pydantic import BaseModel |
|
||||
|
|
||||
|
|
||||
def test_invalid_sequence(): |
def test_invalid_sequence(): |
||||
with pytest.raises(AssertionError): |
with pytest.raises(AssertionError): |
||||
app = FastAPI() |
app = FastAPI() |
||||
|
|
||||
|
|
||||
@app.get("/items/") |
@app.get("/items/") |
||||
def read_items(q: Mapping[str, List[List[str]]] = Query(default=None)): |
def read_items(q: Mapping[str, List[List[str]]] = Query(default=None)): |
||||
pass # pragma: no cover |
pass # pragma: no cover |
||||
|
|||||
Loading…
Reference in new issue