mirror of https://github.com/tiangolo/fastapi.git
🐛 Fix tests imports
This commit is contained in:
parent
a6c821a81e
commit
ad268bb80e
|
|
@ -1,4 +1,4 @@
|
||||||
from fastapi.applications import (
|
from fastapi import (
|
||||||
Body,
|
Body,
|
||||||
Cookie,
|
Cookie,
|
||||||
Depends,
|
Depends,
|
||||||
|
|
@ -215,11 +215,6 @@ def get_header(head_name=Header(None, convert_underscores=False)):
|
||||||
return head_name
|
return head_name
|
||||||
|
|
||||||
|
|
||||||
@app.get("/param")
|
|
||||||
def get_param(par=Param(None)):
|
|
||||||
return par
|
|
||||||
|
|
||||||
|
|
||||||
@app.get("/security")
|
@app.get("/security")
|
||||||
def get_security(sec=Security(HTTPBasic())):
|
def get_security(sec=Security(HTTPBasic())):
|
||||||
return sec
|
return sec
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue