diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
| commit | bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (patch) | |
| tree | d9abea372078840e69e38401bce663b00dfbe07e /tests/overview_page_test.py | |
| parent | 2a592ecd951f758a62b1c4907e5da212cf1ba264 (diff) | |
| download | git2hugo-bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1.tar.gz | |
g2h: Add navbar
Diffstat (limited to 'tests/overview_page_test.py')
| -rw-r--r-- | tests/overview_page_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/overview_page_test.py b/tests/overview_page_test.py index 1d94acf..d2b3f82 100644 --- a/tests/overview_page_test.py +++ b/tests/overview_page_test.py @@ -5,6 +5,7 @@ from g2h.overview_page import OverviewPage def test_init(): commit = Mock() commit.committed_datetime = '2025-04-01T12:34:56+00:00' + commit.hexsha = 'abc' page = OverviewPage('test/overview', 'overview test', 'test branch', 'test tag', 'overview/sub/dir', commit) context = page.context() assert(context['title'] == 'overview test') @@ -12,3 +13,4 @@ def test_init(): assert(context['tags'] == 'test tag') assert(context['content_subdir'] == 'overview/sub/dir') assert(context['latest_commit_date'] == '2025-04-01T12:34:56+00:00') + assert(context['this_commit'] == commit) |