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

Handle doit task errors

parent c0bad7aa
Pipeline #5775 passed with stage
in 32 seconds
......@@ -390,5 +390,5 @@ class NbCourse:
if args is None:
args = []
doit_config = {} # TODO: implement verbosity option
return MyDoitMain(ClassTaskLoader(self),
......@@ -33,18 +33,16 @@ def test_minimal_nbcourse(create_project):
def test_minimal_nbcourse_build(create_project, task):
"""test nbcourse on list of doit tasks returned by get_functions"""
course = NbCourse(MINI_CONF)
with pytest.raises(SystemExit):["-n 4", task])
assert["-n 4", task]) == 0
def test_nbcourse(create_project):
"""Test sample with nbcourse.yml example file"""
@pytest.mark.skip(reason="material directories not available yet")
def test_nbcourse_build(create_project):
"""Test sample build with nbcourse.yml example file"""
course = NbCourse(Path('nbcourse.yml'))
with pytest.raises(SystemExit):["-n 4"])
assert["-n 4"]) == 0
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