Skip to content

Commit

Permalink
test debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Aug 31, 2023
1 parent 644c116 commit ec86a9a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions nbgrader/tests/preprocessors/test_instantiatetests.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ def test_kernel_workingdir(self, preprocessor, caplog):
load_cell = create_file_loader_cell('grades.csv')
test_cell.metadata['nbgrader'] = {'grade': True}

# with the right path, the kernel should load the file
nb = new_notebook()
nb.metadata['kernelspec'] = {
"name": "python3"
}
nb.cells.append(sol_cell)
nb.cells.append(test_cell)
nb.cells.append(load_cell)
resources = {
'metadata': {'path': 'nbgrader/docs/source/user_guide/'}
}
nb, resources = preprocessor.preprocess(nb, resources)
## with the right path, the kernel should load the file
#nb = new_notebook()
#nb.metadata['kernelspec'] = {
# "name": "python3"
#}
#nb.cells.append(sol_cell)
#nb.cells.append(test_cell)
#nb.cells.append(load_cell)
#resources = {
# 'metadata': {'path': 'nbgrader/docs/source/user_guide/'}
#}
#nb, resources = preprocessor.preprocess(nb, resources)

# without the right path, the kernel should report an error
nb = new_notebook()
Expand Down

0 comments on commit ec86a9a

Please sign in to comment.