summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 18:31:16 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 18:31:40 +0200
commitc665dae57b12a80004e7ee4fca4ea5e9df7378d6 (patch)
tree5dd37dfc186d6bba76d30040a24d2c81983bcbfa /tests
parent54f78e712baafa9ab6072508e004b2b6bf6430f8 (diff)
downloadgit2hugo-c665dae57b12a80004e7ee4fca4ea5e9df7378d6.tar.gz
g2h: Link to commit pages from overview page
Diffstat (limited to 'tests')
-rw-r--r--tests/overview_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/overview_test.py b/tests/overview_test.py
index 57d2f5d..06eea97 100644
--- a/tests/overview_test.py
+++ b/tests/overview_test.py
@@ -1,8 +1,9 @@
from g2h.overview_page import OverviewPage
def test_init():
- page = OverviewPage('test/overview', 'overview test', 'test branch', 'test tag', '')
+ page = OverviewPage('test/overview', 'overview test', 'test branch', 'test tag', 'overview/sub/dir')
context = page.context()
assert(context['title'] == 'overview test')
assert(context['branches'] == 'test branch')
assert(context['tags'] == 'test tag')
+ assert(context['content_subdir'] == 'overview/sub/dir')