From dc2a635d2f9a49b666d56813391bc7e09abee98d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 24 Jul 2026 01:04:41 +0900 Subject: [PATCH] chore: add typehints to test --- tests/test_shortcuts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_shortcuts.py b/tests/test_shortcuts.py index a473d03..eea75e4 100644 --- a/tests/test_shortcuts.py +++ b/tests/test_shortcuts.py @@ -38,14 +38,14 @@ def dummy_app() -> None: return d -def test_wrap_exe(dummy_app) -> None: +def test_wrap_exe(dummy_app: dict[str, str]) -> None: s = Shortcuts(Path("")) s.add_shortcut(*dummy_app.values()) assert s.shortcuts["shortcuts"]["0"]["Exe"][0] == '"' assert s.shortcuts["shortcuts"]["0"]["Exe"][-1] == '"' -def test_add_shortcut(dummy_app) -> None: +def test_add_shortcut(dummy_app: dict[str, str]) -> None: s = Shortcuts(Path("")) s.add_shortcut(*dummy_app.values()) new = s.shortcuts["shortcuts"] @@ -56,7 +56,7 @@ def test_add_shortcut(dummy_app) -> None: assert new[ind][k] == v -def test_save_shortcut(dummy_app) -> None: +def test_save_shortcut(dummy_app: dict[str, str]) -> None: s = Shortcuts(Path("")) s.add_shortcut(*dummy_app.values()) with tempfile.NamedTemporaryFile() as f: @@ -67,7 +67,7 @@ def test_save_shortcut(dummy_app) -> None: assert len(s.shortcuts["shortcuts"]) == 1 -def test_shortcut_crc(dummy_app) -> None: +def test_shortcut_crc(dummy_app: dict[str, str]) -> None: s = Shortcuts(Path("")) s.add_shortcut(*dummy_app.values()) for key in s.shortcuts["shortcuts"].keys(): @@ -79,7 +79,7 @@ def test_shortcut_crc(dummy_app) -> None: assert entry["appid"] & 0xFFFFFFFF == bpid -def test_reverse_crc(dummy_app) -> None: +def test_reverse_crc(dummy_app: dict[str, str]) -> None: s = Shortcuts(Path("")) s.add_shortcut(*dummy_app.values()) for key in s.shortcuts["shortcuts"].keys():