Created
November 27, 2019 13:43
-
-
Save okin/92c6f972969a438b6507730439ef736d to your computer and use it in GitHub Desktop.
Nikola not failing TestCheckFailure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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