Skip to content

Commit 7c09314

Browse files
committed
Rename test param to reflect its type
1 parent e5ba048 commit 7c09314

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/api/test_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_network_or_ip_parse(inp: str, mode: IPNetMode, expect: Any) -> None:
8686

8787

8888
@pytest.mark.parametrize(
89-
"inp, expect_type",
89+
"inp, expect_type_call",
9090
[
9191
("192.168.0.1", NetworkOrIP.is_ipv4),
9292
("192.168.0.0/24", NetworkOrIP.is_ipv4_network),
@@ -101,11 +101,11 @@ def test_network_or_ip_parse(inp: str, mode: IPNetMode, expect: Any) -> None:
101101
),
102102
],
103103
)
104-
def test_network_or_ip_validate(inp: Any, expect_type: Callable[[NetworkOrIP], bool]) -> None:
104+
def test_network_or_ip_validate(inp: Any, expect_type_call: Callable[[NetworkOrIP], bool]) -> None:
105105
"""Test the validation of network or IP address."""
106106
res = NetworkOrIP.validate(inp)
107107
# Ensure it's validated as the correct type
108-
assert expect_type(res)
108+
assert expect_type_call(res)
109109

110110

111111
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)