diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 17:10:11 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 17:10:11 +0200 |
| commit | 9bd3fd1bce788dce610ad7276ce1f1634019c380 (patch) | |
| tree | 59898b74445bf4a9e751b4b7bec46f85a7ad43d8 /tests/overview_test.py | |
| parent | 66dfe0e665ebeb0dce1ff290b77245e4a9fadd88 (diff) | |
| download | git2hugo-9bd3fd1bce788dce610ad7276ce1f1634019c380.tar.gz | |
g2h: Add unit tests and restructure class layout
Instead of having a large generator class use individual pages
Diffstat (limited to 'tests/overview_test.py')
| -rw-r--r-- | tests/overview_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/overview_test.py b/tests/overview_test.py new file mode 100644 index 0000000..fa51858 --- /dev/null +++ b/tests/overview_test.py @@ -0,0 +1,8 @@ +from g2h.overview_page import OverviewPage + +def test_init(): + page = OverviewPage('test/overview', 'overview test', 'test branch', 'test tag') + context = page.context() + assert(context['title'] == 'overview test') + assert(context['branches'] == 'test branch') + assert(context['tags'] == 'test tag') |