Skip to content

Commit d9e5ecc

Browse files
committed
fix: test with ruff
1 parent 2a78dd6 commit d9e5ecc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Generator
1+
from collections.abc import Generator
22

33
import pytest
44
from faker import Faker
@@ -29,7 +29,7 @@ def clean_database():
2929

3030

3131
@pytest.fixture(scope="function")
32-
def client() -> Generator[TestClient, None, None]:
32+
def client() -> Generator[TestClient]:
3333
"""Provide a TestClient for making API requests.
3434
3535
Yields:
@@ -40,7 +40,7 @@ def client() -> Generator[TestClient, None, None]:
4040

4141

4242
@pytest.fixture(scope="function")
43-
def valid_user_data() -> Dict:
43+
def valid_user_data() -> dict:
4444
"""Provide valid user registration data using Faker.
4545
4646
Returns:
@@ -56,7 +56,7 @@ def valid_user_data() -> Dict:
5656

5757

5858
@pytest.fixture(scope="function")
59-
def registered_user(client, valid_user_data) -> Dict:
59+
def registered_user(client, valid_user_data) -> dict:
6060
"""Register a user and return user data with credentials.
6161
6262
Args:

0 commit comments

Comments
 (0)