forked from github.com/blag
added test for quickstart creating the templates
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# remove when we don't support py38 anymore
|
||||
from __future__ import annotations
|
||||
import os
|
||||
|
||||
from pytest import MonkeyPatch
|
||||
|
||||
@@ -27,3 +28,13 @@ def test_quickstart(cleandir: str, monkeypatch: MonkeyPatch) -> None:
|
||||
assert 'title = foo' in data
|
||||
assert 'description = foo' in data
|
||||
assert 'author = foo' in data
|
||||
|
||||
for template in (
|
||||
"archive.html",
|
||||
"article.html",
|
||||
"base.html",
|
||||
"page.html",
|
||||
"tag.html",
|
||||
"tags.html",
|
||||
):
|
||||
assert os.path.exists(f'templates/{template}')
|
||||
|
||||
Reference in New Issue
Block a user