diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-30 19:36:51 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-30 19:37:18 +0200 |
| commit | b06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (patch) | |
| tree | bd9ade44dae5a3c838f932d42df9938501251dba /tests/commit_test.py | |
| parent | 9b0ee130c7408e839ceaa0de97a12c9da35e216f (diff) | |
| download | git2hugo-b06dbf67b9ac9e329922d7911ee7a9b09419c5f0.tar.gz | |
g2h: Link to tree from commit page
Diffstat (limited to 'tests/commit_test.py')
| -rw-r--r-- | tests/commit_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/commit_test.py b/tests/commit_test.py index 3a9871a..b32901e 100644 --- a/tests/commit_test.py +++ b/tests/commit_test.py @@ -13,11 +13,12 @@ def test_context(): commit = MagicMock() commit.hexsha = '123' commit.author.email = 'unit@te.st' - page = CommitPage('test/commit', 'commit test', commit, '') + page = CommitPage('test/commit', 'commit test', commit, 'commit/content') context = page.context() assert(context['title'] == 'commit test: 123') assert(context['commit'] == commit) assert(context['redacted_email'] == 'u...t@te...st') + assert(context['content_subdir'] == 'commit/content') def test_redacting_email(): assert(redact_email(None) == '') |