🚨 Enable ARG001 to prevent unused arguments (#1152)

This commit is contained in:
Patrick Arminio
2024-04-05 22:05:28 +02:00
committed by GitHub
parent e3a023da1e
commit dcebccadba
4 changed files with 13 additions and 12 deletions

View File

@@ -101,7 +101,7 @@ def test_get_existing_user_current_user(client: TestClient, db: Session) -> None
def test_get_existing_user_permissions_error(
client: TestClient, normal_user_token_headers: dict[str, str], db: Session
client: TestClient, normal_user_token_headers: dict[str, str]
) -> None:
r = client.get(
f"{settings.API_V1_STR}/users/999999",
@@ -167,7 +167,7 @@ def test_retrieve_users(
def test_update_user_me(
client: TestClient, normal_user_token_headers: dict[str, str], db: Session
client: TestClient, normal_user_token_headers: dict[str, str]
) -> None:
full_name = "Updated Name"
email = random_email()
@@ -184,7 +184,7 @@ def test_update_user_me(
def test_update_password_me(
client: TestClient, superuser_token_headers: dict[str, str], db: Session
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
new_password = random_lower_string()
data = {
@@ -214,7 +214,7 @@ def test_update_password_me(
def test_update_password_me_incorrect_password(
client: TestClient, superuser_token_headers: dict[str, str], db: Session
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
new_password = random_lower_string()
data = {"current_password": new_password, "new_password": new_password}
@@ -247,7 +247,7 @@ def test_update_user_me_email_exists(
def test_update_password_me_same_password_error(
client: TestClient, superuser_token_headers: dict[str, str], db: Session
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
data = {
"current_password": settings.FIRST_SUPERUSER_PASSWORD,
@@ -337,7 +337,7 @@ def test_update_user(
def test_update_user_not_exists(
client: TestClient, superuser_token_headers: dict[str, str], db: Session
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
data = {"full_name": "Updated_full_name"}
r = client.patch(
@@ -415,7 +415,7 @@ def test_delete_user_current_user(client: TestClient, db: Session) -> None:
def test_delete_user_not_found(
client: TestClient, superuser_token_headers: dict[str, str], db: Session
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
r = client.delete(
f"{settings.API_V1_STR}/users/99999999",