summaryrefslogtreecommitdiffstats
path: root/tests/tree_page_test.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-09-18 22:05:48 +0200
committerChristoph Schlosser <christoph@linux.com>2025-09-18 22:05:48 +0200
commit74cd345f76dd01034c804f75e7f16b42e9c0643c (patch)
treeb1105460df469168e052ec278bbb9b96a829ca33 /tests/tree_page_test.py
parentf2056d0a59cd7234610dd7da1ea2c3e2a4be0f00 (diff)
downloadgit2hugo-74cd345f76dd01034c804f75e7f16b42e9c0643c.tar.gz
g2h: Add breadcrumb navigations to file and tree pages
Diffstat (limited to 'tests/tree_page_test.py')
-rw-r--r--tests/tree_page_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tree_page_test.py b/tests/tree_page_test.py
index 891e940..a298728 100644
--- a/tests/tree_page_test.py
+++ b/tests/tree_page_test.py
@@ -53,6 +53,7 @@ def test_context_empty():
assert(context['content_subdir'] == '')
assert(context['subdir'] == '/123/t/tree/path')
assert(context['title'] == 'tree test: Tree')
+ assert(context['breadcrumbs'] == '[/](/123/t/)')
def test_context_entries():
tree = MagicMock()
@@ -111,7 +112,6 @@ def test_get_files():
commit.tree = tree
expected = []
for case in [ None, '.file', 'README', 'main.cc' ]:
- print(str(case))
if case:
add_node(tree, case)
expected.append(case)