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

add missing docstrings

This commit is contained in:
Bastian Venthur
2023-09-20 15:09:28 +02:00
parent 4f3516fb19
commit c92130559c
12 changed files with 72 additions and 10 deletions

View File

@@ -1,3 +1,6 @@
"""Test the templates."""
# remove when we don't support py38 anymore
from __future__ import annotations
@@ -7,6 +10,7 @@ from jinja2 import Template
def test_page(page_template: Template) -> None:
"""Test the page template."""
ctx = {
"content": "this is the content",
"title": "this is the title",
@@ -17,6 +21,7 @@ def test_page(page_template: Template) -> None:
def test_article(article_template: Template) -> None:
"""Test the article template."""
ctx = {
"content": "this is the content",
"title": "this is the title",
@@ -29,6 +34,7 @@ def test_article(article_template: Template) -> None:
def test_index(index_template: Template) -> None:
"""Test the index template."""
entry = {
"title": "this is a title",
"dst": "https://example.com/link",
@@ -49,6 +55,7 @@ def test_index(index_template: Template) -> None:
def test_archive(archive_template: Template) -> None:
"""Test the archive template."""
entry = {
"title": "this is a title",
"dst": "https://example.com/link",
@@ -67,6 +74,7 @@ def test_archive(archive_template: Template) -> None:
def test_tags(tags_template: Template) -> None:
"""Test the tags template."""
tags = [("foo", 42)]
ctx = {
"tags": tags,
@@ -80,6 +88,7 @@ def test_tags(tags_template: Template) -> None:
def test_tag(tag_template: Template) -> None:
"""Test the tag template."""
entry = {
"title": "this is a title",
"dst": "https://example.com/link",