From 02bb779d892296353a4afc5b4120eb75bbae4d5f Mon Sep 17 00:00:00 2001 From: xuwenyihust Date: Thu, 4 Jul 2024 12:40:43 +0800 Subject: [PATCH] Refactor notebook creation API endpoint and model to use 'name' and 'path' instead of 'notebookName' in test_notebook_service.py --- server/tests/services/test_notebook_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/services/test_notebook_service.py b/server/tests/services/test_notebook_service.py index ba122a7..0972518 100644 --- a/server/tests/services/test_notebook_service.py +++ b/server/tests/services/test_notebook_service.py @@ -41,7 +41,7 @@ def test_create_and_get_notebook(self): create_response = Notebook.create_notebook_with_init_cells(notebook_name='Notebook.ipynb', notebook_path='') print(create_response) - print(Notebook.get_notebook_by_path(notebook_path='/work/Notebook.ipynb')) + print(Notebook.get_notebook_by_path(notebook_path='/work/Notebook.ipynb').json) # notebooks = json.loads(Notebook.get_notebook_by_path(notebook_path='/work/Notebook.ipynb')) # self.assertEqual(len(notebooks), 1) # self.assertEqual(notebooks['name'], 'Notebook.ipynb')