Esempio n. 1
0
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")
Esempio n. 2
0
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")
Esempio n. 3
0
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")
Esempio n. 4
0
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")