Skip to content

Instantly share code, notes, and snippets.

@okin
Created November 27, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okin/92c6f972969a438b6507730439ef736d to your computer and use it in GitHub Desktop.
Save okin/92c6f972969a438b6507730439ef736d to your computer and use it in GitHub Desktop.
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 io.open(os.path.join("output", "foobar"), "w+", encoding="utf8") as outf:
outf.write("foo")
__main__.main(['check', '-f'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment