Add asynchronous machine over and out to shared MCP

This commit is contained in:
Александр Петров
2026-09-17 23:32:46 +03:00
parent 259c782190
commit a8d0692eb2
15 changed files with 241 additions and 19 deletions
+9
View File
@@ -64,6 +64,15 @@ class McpAdapterTests(unittest.TestCase):
self.client.step_instruction(3)
self.assertEqual(self.calls[-1][1], 'step')
self.assertEqual(self.calls[-1][2]['count'], 3)
self.client.step_over_instruction(2)
self.assertEqual(self.calls[-1][1], 'step_over_instruction')
self.assertEqual(self.calls[-1][2]['count'], 2)
self.client.step_out_instruction()
self.assertEqual(self.calls[-1][1], 'step_out_instruction')
before = len(self.calls)
with self.assertRaisesRegex(SessionError, '1..64'):
self.client.step_over_instruction(0)
self.assertEqual(len(self.calls), before)
def test_press_key_releases_shift_after_snapshot_error(self):
calls = []