def test_build(): from catsup.cli import clean, build clean(settings="config.json") build(settings="config.json") assert output_exist("feed.xml") assert output_exist("index.html") assert output_exist("page.html") assert output_exist("sitemap.txt") assert output_exist("should-exist") assert not output_exist(".should-not-exist")
def test_generate_without_post(): from catsup.cli import clean, build clean(settings="config2.json") build(settings="config2.json") assert not output_exist("page.html")