shared shell registry
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user