Skip to content

Commit 96d0296

Browse files
committed
Return back autouse=True for db fixture
1 parent a6b477c commit 96d0296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def disable_password_hashing(request: FixtureRequest) -> Generator[bool, None, N
3131
yield False # Don't patch if `enable_password_hashing` marker is set
3232

3333

34-
@pytest.fixture(scope="module")
34+
@pytest.fixture(scope="module", autouse=True)
3535
def db(disable_password_hashing: bool) -> Generator[Session, None, None]: # noqa: ARG001
3636
with Session(engine) as session:
3737
session.execute( # Recreate user for every module, with\without pwd hashing
@@ -47,7 +47,7 @@ def db(disable_password_hashing: bool) -> Generator[Session, None, None]: # noq
4747

4848

4949
@pytest.fixture(scope="module")
50-
def client(db: Session) -> Generator[TestClient, None, None]: # noqa: ARG001
50+
def client() -> Generator[TestClient, None, None]:
5151
with TestClient(app) as c:
5252
yield c
5353

0 commit comments

Comments
 (0)