Skip to content

Commit

Permalink
Refactor notebook creation API endpoint and model to use 'name' and '…
Browse files Browse the repository at this point in the history
…path' instead of 'notebookName' in test_notebook_service.py
  • Loading branch information
xuwenyihust committed Jul 4, 2024
1 parent 2f4db04 commit 02bb779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tests/services/test_notebook_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 02bb779

Please sign in to comment.