summaryrefslogtreecommitdiffstats
path: root/tests/commit_test.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 17:58:29 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 18:17:07 +0200
commitd8d67f6ba38388aecbf66d791432d5cd3aa8db6e (patch)
tree1cf1c79460d80addcc3e7dcf43b6ae2ad42cacca /tests/commit_test.py
parentb921db2d6504cee332cf54346dd1c81d034d3acf (diff)
downloadgit2hugo-d8d67f6ba38388aecbf66d791432d5cd3aa8db6e.tar.gz
g2h: Add --content-subdir arg
Diffstat (limited to 'tests/commit_test.py')
-rw-r--r--tests/commit_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/commit_test.py b/tests/commit_test.py
index e36f835..1d79f1e 100644
--- a/tests/commit_test.py
+++ b/tests/commit_test.py
@@ -4,7 +4,7 @@ from unittest.mock import MagicMock
def test_init():
commit = MagicMock()
commit.hexsha = '123'
- page = CommitPage('test/commit', 'commit test', commit)
+ page = CommitPage('test/commit', 'commit test', commit, '')
assert(page.name == 'commit test')
assert(page.out_file_path == 'test/commit/123/index.md')
assert(page.template.name == 'commit.md')
@@ -12,7 +12,7 @@ def test_init():
def test_context():
commit = MagicMock()
commit.hexsha = '123'
- page = CommitPage('test/commit', 'commit test', commit)
+ page = CommitPage('test/commit', 'commit test', commit, '')
context = page.context()
assert(context['title'] == 'commit test: 123')
assert(context['commit'] == commit)