File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ def get_content_by_path(path: str = None):
17
17
jupyter_api_path = app .config ['JUPYTER_API_PATH' ]
18
18
jupyter_default_path = app .config ['JUPYTER_DEFAULT_PATH' ]
19
19
20
+ if path is None :
21
+ path = jupyter_default_path
20
22
path = f"{ jupyter_api_path } /{ path } "
21
23
response = requests .get (path )
22
24
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def test_create_and_get_notebook(self):
60
60
61
61
self .assertTrue (notebook_name_1 .startswith ('notebook_' ))
62
62
self .assertTrue (notebook_name_1 .endswith ('.ipynb' ))
63
- self .assertEquals ('work/' + notebook_name_1 , notebook_path_1 )
63
+ self .assertEqual ('work/' + notebook_name_1 , notebook_path_1 )
64
64
65
65
get_response_1 = Notebook .get_notebook_by_path (notebook_path = notebook_path_1 )
66
66
notebook_1 = get_response_1 [0 ]
You can’t perform that action at this time.
0 commit comments