From b06dbf67b9ac9e329922d7911ee7a9b09419c5f0 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 30 Aug 2025 19:36:51 +0200 Subject: g2h: Link to tree from commit page --- tests/commit_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/commit_test.py') 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) == '') -- cgit v1.2.3