mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
⬆️ Upgrade Python to 3.14 (#2352)
This commit is contained in:
committed by
GitHub
parent
a727535488
commit
14728b636c
@@ -13,7 +13,7 @@ from tests.utils.utils import get_superuser_token_headers
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def db() -> Generator[Session, None, None]:
|
||||
def db() -> Generator[Session]:
|
||||
with Session(engine) as session:
|
||||
init_db(session)
|
||||
yield session
|
||||
@@ -25,7 +25,7 @@ def db() -> Generator[Session, None, None]:
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def client() -> Generator[TestClient, None, None]:
|
||||
def client() -> Generator[TestClient]:
|
||||
with TestClient(app) as c:
|
||||
yield c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user