added test for get_recipe_from_notebook

This commit is contained in:
PatchOfScotland
2023-03-14 13:39:01 +01:00
parent 40ed98000b
commit af489d2bb9
9 changed files with 27 additions and 16 deletions

View File

@ -182,12 +182,11 @@ class PapermillHandler(BaseHandler):
# Send job directory, as actual definitons will be read from within it
self.to_runner.send(job_dir)
#TODO test me
def getRecipeFromNotebook(name:str, notebook_filename:str,
def get_recipe_from_notebook(name:str, notebook_filename:str,
parameters:Dict[str,Any]={}, requirements:Dict[str,Any]={}
)->JupyterNotebookRecipe:
valid_existing_file_path(notebook_filename, extension=".ipynb")
check_type(name, str, hint="getRecipeFromNotebook.name")
check_type(name, str, hint="get_recipe_from_notebook.name")
notebook_code = read_notebook(notebook_filename)