Web app
This commit is contained in:
@@ -74,6 +74,16 @@ class AppTests(unittest.TestCase):
|
||||
self.assertEqual(call.shell.execution_count, call.result.execution_count)
|
||||
self.assertIn("execute_result", call.shell.capabilities)
|
||||
|
||||
def test_create_shell_and_get_last_shell_return_metadata(self):
|
||||
app = App()
|
||||
|
||||
created = app.create_shell()
|
||||
last = app.get_last_shell()
|
||||
|
||||
self.assertEqual(created.shell_id, last.shell_id)
|
||||
self.assertEqual(created.name, last.name)
|
||||
self.assertEqual(created.execution_count, 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user