Commit dc9f721c authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Tests with parametrize

parent 3ef29fc2
......@@ -27,7 +27,19 @@ def test_minimal_nbcourse(create_project):
def test_minimal_nbcourse_build(create_project):
"""Only test nbcourse object instantiation"""
def test_minimal_nbcourse_build_pages(create_project):
course = NbCourse()
with pytest.raises(SystemExit):["build_pages"])
TASKS = 'output_dir', 'copy_material', 'copy_reveal', 'zip_chapters', \
'build_pages', 'execute_notebooks', 'convert_to_html', \
'convert_to_slides', 'build_book', 'zip_archive'
@pytest.mark.parametrize('task', TASKS)
def test_minimal_nbcourse_build(create_project, task):
course = NbCourse()["-n 4"])
with pytest.raises(SystemExit):["-n 4", task])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment