Skip to content

Commit

Permalink
!squash conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jun 4, 2023
1 parent 36fd3b9 commit 892c70c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import pytest
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.orm.scoping import ScopedSession
from unihan_db.bootstrap import UNIHAN_FILES


Expand Down Expand Up @@ -74,7 +75,7 @@ def metadata() -> sqlalchemy.MetaData:


@pytest.fixture(scope="function")
def session(engine, request):
def session(engine: sqlalchemy.Engine, request: pytest.FixtureRequest) -> ScopedSession:
connection = engine.connect()
transaction = connection.begin()
session_factory = sessionmaker(bind=engine)
Expand Down

0 comments on commit 892c70c

Please sign in to comment.