From 329981056a26441bc8e13ac4bcaad0e87cb554f7 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Sun, 12 Oct 2025 13:22:45 +0200 Subject: [PATCH 1/3] Added type hints into test_suid.py --- tests/unit/utils/test_suid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/utils/test_suid.py b/tests/unit/utils/test_suid.py index b9c440882..65722d299 100644 --- a/tests/unit/utils/test_suid.py +++ b/tests/unit/utils/test_suid.py @@ -6,20 +6,20 @@ class TestSUID: """Unit tests for functions defined in utils.suid module.""" - def test_get_suid(self): + def test_get_suid(self) -> None: """Test that get_suid generates a valid UUID.""" suid_value = suid.get_suid() assert suid.check_suid(suid_value), "Generated SUID is not valid" assert isinstance(suid_value, str), "SUID should be a string" - def test_check_suid_valid(self): + def test_check_suid_valid(self) -> None: """Test that check_suid returns True for a valid UUID.""" valid_suid = "123e4567-e89b-12d3-a456-426614174000" assert suid.check_suid( valid_suid ), "check_suid should return True for a valid SUID" - def test_check_suid_invalid(self): + def test_check_suid_invalid(self) -> None: """Test that check_suid returns False for an invalid UUID.""" invalid_suid = "invalid-uuid" assert not suid.check_suid( From ee3680fa1312d931f353788d127e19366d6dcfe2 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Sun, 12 Oct 2025 13:23:06 +0200 Subject: [PATCH 2/3] Added type hints into test_lightspeed_stack.py --- tests/unit/test_lightspeed_stack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_lightspeed_stack.py b/tests/unit/test_lightspeed_stack.py index 6f6ed41d7..2a86a33be 100644 --- a/tests/unit/test_lightspeed_stack.py +++ b/tests/unit/test_lightspeed_stack.py @@ -3,7 +3,7 @@ from lightspeed_stack import create_argument_parser -def test_create_argument_parser(): +def test_create_argument_parser() -> None: """Test for create_argument_parser function.""" arg_parser = create_argument_parser() # nothing more to test w/o actual parsing is done From e0460d9b79e5802330eae3f0bc8a59b60f9f9b45 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Sun, 12 Oct 2025 13:23:20 +0200 Subject: [PATCH 3/3] Added type hints into test_version.py --- tests/integration/test_version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_version.py b/tests/integration/test_version.py index 79bfd61b3..140b72970 100644 --- a/tests/integration/test_version.py +++ b/tests/integration/test_version.py @@ -5,7 +5,7 @@ from version import __version__ -def read_version_from_pyproject(): +def read_version_from_pyproject() -> str: """Read version from pyproject.toml file.""" # it is not safe to just try to read version from pyproject.toml file directly # the PDM tool itself is able to retrieve the version, even if the version @@ -18,7 +18,7 @@ def read_version_from_pyproject(): return completed.stdout.decode("utf-8").strip() -def test_version_handling(): +def test_version_handling() -> None: """Test how version is handled by the project.""" source_version = __version__ project_version = read_version_from_pyproject()