Commit a6e39951 authored by Matthieu Boileau's avatar Matthieu Boileau

Fix #23

parent 58405ed2
......@@ -76,6 +76,11 @@ def test_nbcourse_wrong_build(create_wrong_project):
"""Test sample build with nbcourse.yml sample file"""
course = NbCourse(Path('nbcourse.yml'))
course.conf['book']
with pytest.raises(SystemExit):
with pytest.raises(AssertionError):
assert course.build(["-n 4"]) == 2
ret = 0
try:
ret = course.build(["-n 4"])
except SystemExit:
ret = 2
except AssertionError:
ret = 2
assert ret == 2
Markdown is supported
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