1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

added test for quickstart creating the templates

This commit is contained in:
Bastian Venthur
2023-06-01 14:02:04 +02:00
parent c952c574b7
commit f97e641bd8

View File

@@ -1,5 +1,6 @@
# remove when we don't support py38 anymore # remove when we don't support py38 anymore
from __future__ import annotations from __future__ import annotations
import os
from pytest import MonkeyPatch from pytest import MonkeyPatch
@@ -27,3 +28,13 @@ def test_quickstart(cleandir: str, monkeypatch: MonkeyPatch) -> None:
assert 'title = foo' in data assert 'title = foo' in data
assert 'description = foo' in data assert 'description = foo' in data
assert 'author = 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}')