Commit bc2b1d31 authored by Matthieu Boileau's avatar Matthieu Boileau

Merge branch 'develop' into 'master'

Fix #23

Closes #22 and #23

See merge request !15
parents 58405ed2 a6e39951
Pipeline #8451 passed with stages
in 2 minutes and 2 seconds
......@@ -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