Exemplo 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")
Exemplo 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")
Exemplo 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")
Exemplo 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")