shared shell registry

This commit is contained in:
lda
2026-08-30 22:49:34 +07:00 Verified
parent 0b87620852
commit 6a8546cb0f
8 changed files with 262 additions and 68 deletions
+8
View File
@@ -49,6 +49,14 @@ class AppTests(unittest.TestCase):
],
)
def test_call_ids_are_readable(self):
app = App()
with contextlib.redirect_stdout(io.StringIO()):
call = app.run_code("1 + 1", shell_name="new")
self.assertRegex(call.call_id, r"^[a-z]+-[a-z]+-[a-z]+-[0-9a-f]{4}$")
def test_last_reuses_shell_but_each_call_has_new_id(self):
app = App()