From 74cd345f76dd01034c804f75e7f16b42e9c0643c Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Thu, 18 Sep 2025 22:05:48 +0200 Subject: g2h: Add breadcrumb navigations to file and tree pages --- tests/file_page_test.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/file_page_test.py') diff --git a/tests/file_page_test.py b/tests/file_page_test.py index a1123de..3fff51e 100644 --- a/tests/file_page_test.py +++ b/tests/file_page_test.py @@ -41,6 +41,7 @@ def test_context(): assert(context['file_extension'] == 'txt') assert(context['title'] == 'file test: test_file.txt') assert(context['type'] == 'text') + assert(context['breadcrumbs'] == '[/](/file/content/123/t/)/[test_file.txt](/file/content/123/t/test_file.txt)') def test_context_dot_file(): file = MagicMock() @@ -57,6 +58,7 @@ def test_context_dot_file(): assert(context['file_extension'] == '') assert(context['title'] == 'file test: .file') assert(context['type'] == 'text') + assert(context['breadcrumbs'] == '[/](/file/content/123/t/)/[.file](/file/content/123/t/_file)') def test_bytes_to_content_text(): content, type = bytes_to_content('test'.encode()) -- cgit v1.2.3