Skip to content

Commit

Permalink
Skip tests if notebook is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Jun 27, 2018
1 parent 1638ae4 commit eb6f02a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_contentsmanager.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from nbrmd.cm import RmdFileContentsManager
from nbrmd import RmdFileContentsManager, readf
from utils import list_all_notebooks, remove_outputs, remove_outputs_and_header
import os
import sys
import pytest
from nbrmd import readf


def test_create_contentsmanager():
Expand All @@ -12,6 +11,8 @@ def test_create_contentsmanager():

@pytest.mark.skipif(sys.version_info < (3, 6),
reason="unordered dict result in changes in chunk options")
@pytest.mark.skipif(isinstance(RmdFileContentsManager, str),
reason=RmdFileContentsManager)
@pytest.mark.parametrize('nb_file', list_all_notebooks('.ipynb'))
def test_load_save_rename(nb_file, tmpdir):
tmp_ipynb = 'notebook.ipynb'
Expand Down

0 comments on commit eb6f02a

Please sign in to comment.