diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 18:15:22 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 18:15:22 +0100 |
| commit | 70deef7bc561f377eda231cf2b20e7e605b72623 (patch) | |
| tree | aa59c0407d742fa545bf693cf89a88afd288e888 /tests | |
| parent | 8b677faf7c69edb355bb96f4beb040178bdece8b (diff) | |
| download | deck-it-70deef7bc561f377eda231cf2b20e7e605b72623.tar.gz deck-it-70deef7bc561f377eda231cf2b20e7e605b72623.zip | |
feat: windows module
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_windows.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_windows.py b/tests/test_windows.py new file mode 100644 index 0000000..1573a77 --- /dev/null +++ b/tests/test_windows.py @@ -0,0 +1,23 @@ +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) + +import unittest + +import deckit.modules.windows as windows + + +class Commands(unittest.TestCase): + def test_lua_and_classic(self): + self.assertEqual(windows.workspace_cmd(3, lua=False), + ["hyprctl", "dispatch", "workspace", "3"]) + self.assertEqual(windows.workspace_cmd(3, lua=True)[:2], ["hyprctl", "eval"]) + + def test_address_guard(self): + self.assertIsNone(windows.ADDR.fullmatch("0x1;rm")) + self.assertTrue(windows.ADDR.fullmatch("0x55897e5c0800")) + + +if __name__ == "__main__": + unittest.main() |
