feat(tui): upgrade Box TUI with real-time cognitive sensing, profile menu, and work pipeline
This commit is contained in:
Executable
+1584
File diff suppressed because it is too large
Load Diff
Executable
+8053
File diff suppressed because it is too large
Load Diff
@@ -184,5 +184,22 @@ class TestBoxWorkCognitiveIntegration(unittest.TestCase):
|
|||||||
self.assertEqual(cm.exception.code, 1)
|
self.assertEqual(cm.exception.code, 1)
|
||||||
|
|
||||||
|
|
||||||
|
class TestBoxFleetTUIWorkIntegration(unittest.TestCase):
|
||||||
|
def test_gather_work_surface(self):
|
||||||
|
import importlib.util
|
||||||
|
from pathlib import Path
|
||||||
|
bin_dir = Path(__file__).resolve().parent.parent / "bin"
|
||||||
|
spec = importlib.util.spec_from_file_location("box_fleet_tui", str(bin_dir / "box-fleet-tui.py"))
|
||||||
|
bft = importlib.util.module_from_spec(spec)
|
||||||
|
spec.loader.exec_module(bft)
|
||||||
|
|
||||||
|
fake_run = lambda cmd, timeout=15: (0, "active")
|
||||||
|
snap = bft.gather_work(run=fake_run)
|
||||||
|
self.assertIn("cognitive", snap)
|
||||||
|
self.assertIn("issues", snap)
|
||||||
|
self.assertIn("loopback_active", snap)
|
||||||
|
self.assertTrue(snap["loopback_active"])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user