Khanna, Videh Rakesh Rakesh
fix: increase all timeouts to 180s, extract tools before STM, add multi-step tool chaining, differentiate listener errors
f3ed77c Download tests/test_macos_app_bundle.py from V1deh/JARVIS: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/spaces/V1deh/JARVIS/resolve/main/tests/test_macos_app_bundle.py
- Command line
-
hf download hf://spaces/V1deh/JARVIS/tests/test_macos_app_bundle.py
-
curl -L -o test_macos_app_bundle.py https://huggingface.co/spaces/V1deh/JARVIS/resolve/main/tests/test_macos_app_bundle.py
986 Bytes
| import os | |
| import sys | |
| import unittest | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| class TestMacOSAppBundleConfig(unittest.TestCase): | |
| def test_bundle_declares_microphone_permissions(self): | |
| from macos_app_config import INFO_PLIST | |
| self.assertIn("NSMicrophoneUsageDescription", INFO_PLIST) | |
| self.assertTrue(INFO_PLIST["NSMicrophoneUsageDescription"]) | |
| self.assertIn("NSSpeechRecognitionUsageDescription", INFO_PLIST) | |
| self.assertTrue(INFO_PLIST["NSSpeechRecognitionUsageDescription"]) | |
| def test_bundle_is_menubar_app(self): | |
| from macos_app_config import INFO_PLIST | |
| self.assertTrue(INFO_PLIST["LSUIElement"]) | |
| def test_bundle_targets_native_entrypoint(self): | |
| from macos_app_config import APP_NAME, bundle_paths | |
| self.assertEqual(APP_NAME, "JARVIS") | |
| self.assertTrue(bundle_paths()["script"].is_file()) | |
| self.assertTrue(bundle_paths()["icon_png"].is_file()) |