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:
@@ -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}')
|
||||||
|
|||||||
Reference in New Issue
Block a user