feat(desktop-wake): add wecom_search profile for SearchResultWindow2 (1.2.6)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 27s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 11:59:49 +08:00
parent 6d3c353967
commit c75eaa701b
8 changed files with 90 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ class ProfileTests(unittest.TestCase):
ids = list_profiles()
self.assertIn("wecom", ids)
self.assertIn("generic", ids)
self.assertIn("wecom_search", ids)
def test_load_wecom(self):
p = load_profile("wecom")
@@ -24,6 +25,17 @@ class ProfileTests(unittest.TestCase):
self.assertGreaterEqual(p.warm_min_findall, 50)
self.assertIn("native_helper", p.wake_strategies)
self.assertIn("n2-wake", p.native_args or [])
self.assertTrue(p.activate_maximize)
def test_load_wecom_search(self):
p = load_profile("wecom_search")
self.assertEqual(p.id, "wecom_search")
self.assertEqual(p.window_class, "SearchResultWindow2")
self.assertIn("search_result", p.warm_markers)
self.assertIn("user_item", p.warm_markers)
self.assertFalse(p.activate_maximize)
self.assertIn("native_helper", p.wake_strategies)
self.assertIn("n2-wake", p.native_args or [])
def test_unknown_profile(self):
from jiangchang_desktop_wake.errors import DesktopWakeError