summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-30 19:36:51 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-30 19:37:18 +0200
commitb06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (patch)
treebd9ade44dae5a3c838f932d42df9938501251dba /tests
parent9b0ee130c7408e839ceaa0de97a12c9da35e216f (diff)
downloadgit2hugo-b06dbf67b9ac9e329922d7911ee7a9b09419c5f0.tar.gz
g2h: Link to tree from commit page
Diffstat (limited to 'tests')
-rw-r--r--tests/commit_test.py3
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) == '')