File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from sqlalchemy import create_engine
44from sqlalchemy .orm import sessionmaker
55from sqlalchemy .pool import StaticPool
6- from contextlib import nullcontext
76from unittest import mock
87
98def passthrough_decorator (* args , ** kwargs ):
@@ -15,15 +14,14 @@ def decorator(func):
1514mock .patch ('slowapi.Limiter.limit' , passthrough_decorator ).start ()
1615mock .patch ('slowapi.Limiter.shared_limit' , passthrough_decorator ).start ()
1716
17+ # ruff: noqa: E402
1818from app .main import app
1919from app .database import Base
2020from app .database import get_db as database_get_db
2121from app .dependencies import get_db as dependencies_get_db
2222from app .core .config import settings
23- from app import crud , schemas , models
23+ from app import models
2424from app .core .hashing import Hasher
25- from limits .storage import MemoryStorage
26- from limits .strategies import STRATEGIES
2725
2826SQLALCHEMY_DATABASE_URL = "sqlite:///:memory:"
2927
You can’t perform that action at this time.
0 commit comments