]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix tests imports
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 04:01:34 +0000 (08:01 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Mon, 10 Dec 2018 04:01:34 +0000 (08:01 +0400)
tests/main.py

index 6795baae45f9db19aa78a268d6ed450b775eb294..697c2e520bfc742c1cf5bd7da9e6aa3f475f9edf 100644 (file)
@@ -1,4 +1,4 @@
-from fastapi.applications import (
+from fastapi import (
     Body,
     Cookie,
     Depends,
@@ -215,11 +215,6 @@ def get_header(head_name=Header(None, convert_underscores=False)):
     return head_name
 
 
-@app.get("/param")
-def get_param(par=Param(None)):
-    return par
-
-
 @app.get("/security")
 def get_security(sec=Security(HTTPBasic())):
     return sec