Hardening autonomous navigation: Implemented Modal Guards, Transient Drift Protection (WhatsApp fix), and Aggressive Recovery paths. Cleaned up diagnostic artifacts.
This commit is contained in:
13
debug_test.py
Normal file
13
debug_test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from unittest.mock import MagicMock
|
||||
from GramAddict.core.q_nav_graph import QNavGraph
|
||||
|
||||
mock_device = MagicMock()
|
||||
mock_device._get_current_app.return_value = "com.android.vending"
|
||||
|
||||
mock_engine = MagicMock()
|
||||
mock_engine.find_best_node.return_value = {"x": 50, "y": 50, "semantic_string": "fake profile link", "source": "vlm"}
|
||||
|
||||
nav_graph = QNavGraph(mock_device)
|
||||
print(nav_graph._execute_transition("tap_post_username", zero_engine=mock_engine))
|
||||
print(mock_engine.find_best_node.called)
|
||||
|
||||
Reference in New Issue
Block a user