[codestyle] add type hint to fixture, indicating it is a function that we need to call

This commit is contained in:
bronsen 2025-03-15 22:30:34 +01:00
parent 246c22ce39
commit 16503bea7a

View file

@ -1,3 +1,4 @@
from typing import Callable
import pytest
from django.test import Client
from django.urls import reverse
@ -41,7 +42,7 @@ def test_entering_same_name_twice_does_not_change_database_entry(data, session:
],
)
def test_enter_endpoint_accepts_only_post_requests(
client: Client, http_method: str, expected_status: int, random_name
client: Client, http_method: str, expected_status: int, random_name: Callable[[int], str]
):
request_method = getattr(client, http_method.lower())