diff options
Diffstat (limited to 'testenv/tests/validators')
-rw-r--r-- | testenv/tests/validators/test_auth.py | 3 | ||||
-rw-r--r-- | testenv/tests/validators/test_basic.py | 5 | ||||
-rw-r--r-- | testenv/tests/validators/test_net.py | 3 | ||||
-rw-r--r-- | testenv/tests/validators/test_os.py | 3 |
4 files changed, 5 insertions, 9 deletions
diff --git a/testenv/tests/validators/test_auth.py b/testenv/tests/validators/test_auth.py index ad56bbe0..789d8ece 100644 --- a/testenv/tests/validators/test_auth.py +++ b/testenv/tests/validators/test_auth.py @@ -20,7 +20,6 @@ # ========================================================================== # -from typing import List from typing import Any import pytest @@ -72,7 +71,7 @@ def test_fail__valid_user(arg: Any) -> None: (", foo, ", ["foo"]), ([], []), ]) -def test_ok__valid_users_list(arg: Any, retval: List) -> None: +def test_ok__valid_users_list(arg: Any, retval: list) -> None: assert valid_users_list(arg) == retval diff --git a/testenv/tests/validators/test_basic.py b/testenv/tests/validators/test_basic.py index c0e7b9ba..6303ed96 100644 --- a/testenv/tests/validators/test_basic.py +++ b/testenv/tests/validators/test_basic.py @@ -20,7 +20,6 @@ # ========================================================================== # -from typing import List from typing import Any import pytest @@ -151,7 +150,7 @@ def test_fail__valid_float_f01(arg: Any) -> None: (", a, ", ["a"]), ([], []), ]) -def test_ok__valid_string_list(arg: Any, retval: List) -> None: +def test_ok__valid_string_list(arg: Any, retval: list) -> None: assert valid_string_list(arg) == retval @@ -165,7 +164,7 @@ def test_ok__valid_string_list(arg: Any, retval: List) -> None: (", 1, ", [1]), ([], []), ]) -def test_ok__valid_string_list__subval(arg: Any, retval: List) -> None: # pylint: disable=invalid-name +def test_ok__valid_string_list__subval(arg: Any, retval: list) -> None: # pylint: disable=invalid-name assert valid_string_list(arg, subval=int) == retval diff --git a/testenv/tests/validators/test_net.py b/testenv/tests/validators/test_net.py index 288f4799..8067322e 100644 --- a/testenv/tests/validators/test_net.py +++ b/testenv/tests/validators/test_net.py @@ -20,7 +20,6 @@ # ========================================================================== # -from typing import List from typing import Any import pytest @@ -168,7 +167,7 @@ def test_fail__valid_port(arg: Any) -> None: ("80,443,443,", [80, 443, 443]), (65535, [65535]), ]) -def test_ok__valid_ports_list(arg: Any, retval: List[int]) -> None: +def test_ok__valid_ports_list(arg: Any, retval: list[int]) -> None: assert valid_ports_list(arg) == retval diff --git a/testenv/tests/validators/test_os.py b/testenv/tests/validators/test_os.py index 4cdd5aa4..cabb8e51 100644 --- a/testenv/tests/validators/test_os.py +++ b/testenv/tests/validators/test_os.py @@ -22,7 +22,6 @@ import os -from typing import List from typing import Any import pytest @@ -148,7 +147,7 @@ def test_fail__valid_unix_mode(arg: Any) -> None: ("/bin/true, 1, 2, 3,", ["/bin/true", "1", "2", "3"]), ("/bin/true", ["/bin/true"]), ]) -def test_ok__valid_command(arg: Any, retval: List[str]) -> None: +def test_ok__valid_command(arg: Any, retval: list[str]) -> None: assert valid_command(arg) == retval |