Skip to content

Commit

Permalink
Fix test on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Jun 11, 2019
1 parent d4e80dc commit 3b41299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_contentsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def test_global_auto_pairing_works_with_empty_notebook(tmpdir):
assert not os.path.isfile(tmp_auto)
assert 'notebook.ipynb' not in cm.paired_notebooks

model = cm.get(path=tmp_ipynb)
model = cm.get(path='notebook.ipynb')
compare_notebooks(nb, model['content'])

# add language information to the notebook
Expand Down Expand Up @@ -772,7 +772,7 @@ def test_global_auto_pairing_works_with_empty_notebook(tmpdir):
with open(tmp_py, 'a') as fp:
fp.write('# %%\n2+2\n')

nb2 = cm.get(path=tmp_ipynb)['content']
nb2 = cm.get(path='notebook.ipynb')['content']
assert len(nb2.cells) == 1
assert nb2.cells[0].source == '2+2'

Expand Down

0 comments on commit 3b41299

Please sign in to comment.