fix(desktop-wake): n2-wake wecom_search via main WeWorkWindow hwnd (1.2.7)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 27s
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:
@@ -34,9 +34,17 @@ class ProfileTests(unittest.TestCase):
|
||||
self.assertIn("search_result", p.warm_markers)
|
||||
self.assertIn("user_item", p.warm_markers)
|
||||
self.assertFalse(p.activate_maximize)
|
||||
self.assertEqual(p.native_hwnd_class, "WeWorkWindow")
|
||||
self.assertIn("native_helper", p.wake_strategies)
|
||||
self.assertIn("n2-wake", p.native_args or [])
|
||||
|
||||
def test_resolve_native_hwnd_fallback_without_class(self):
|
||||
from jiangchang_desktop_wake.wake import resolve_native_hwnd
|
||||
|
||||
p = Profile.from_dict({"id": "x", "window_class": "Foo"})
|
||||
self.assertIsNone(p.native_hwnd_class)
|
||||
self.assertEqual(resolve_native_hwnd(12345, p), 12345)
|
||||
|
||||
def test_unknown_profile(self):
|
||||
from jiangchang_desktop_wake.errors import DesktopWakeError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user