Browse Source

🎨 Import from root module

pull/11/head
Sebastián Ramírez 6 years ago
parent
commit
02dfce95a0
  1. 2
      tests/endpoints/a.py
  2. 2
      tests/endpoints/b.py
  3. 12
      tests/main.py

2
tests/endpoints/a.py

@ -1,4 +1,4 @@
from fastapi.routing import APIRouter
from fastapi import APIRouter
router = APIRouter()

2
tests/endpoints/b.py

@ -1,4 +1,4 @@
from fastapi.routing import APIRouter
from fastapi import APIRouter
router = APIRouter()

12
tests/main.py

@ -1,22 +1,16 @@
from fastapi.applications import FastAPI
from fastapi.params import (
from fastapi.applications import (
Body,
Cookie,
Depends,
FastAPI,
File,
Form,
Header,
Param,
Path,
Query,
Security,
)
from fastapi.security.http import HTTPBasic
from fastapi.security.oauth2 import (
OAuth2,
OAuth2PasswordRequestData,
OAuth2PasswordRequestForm,
)
from fastapi.security import HTTPBasic, OAuth2, OAuth2PasswordRequestForm
from pydantic import BaseModel
from starlette.responses import HTMLResponse, JSONResponse, PlainTextResponse
from starlette.status import HTTP_202_ACCEPTED

Loading…
Cancel
Save