Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Nikola not failing TestCheckFailure
class TestCheckFailure(DemoBuildTest):
"""The demo build should pass 'nikola check'"""
def test_check_links_fail(self):
with cd(self.target_dir):
os.unlink(os.path.join("output", "archive.html"))
__main__.main(['check', '-l'])
def test_check_files_fail(self):
with cd(self.target_dir):
with"output", "foobar"), "w+", encoding="utf8") as outf:
__main__.main(['check', '-f'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment