Copyright and license

This commit is contained in:
Olaf
2026-08-25 08:39:46 +02:00
parent 1cba4e8649
commit d896d3d068
51 changed files with 343 additions and 0 deletions
+9
View File
@@ -1,3 +1,6 @@
## Copyright © 2026 Olaf Kolkman
## SPDX-License-Identifier: GPL-3.0-or-later
import json
import threading
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
@@ -235,6 +238,8 @@ def test_public_and_admin_pages_render_html():
root_page = client.get('/')
assert 'LinkLog' in root_page.text
assert 'src="/static/logo.svg"' in root_page.text
assert 'class="site-footer"' in root_page.text
assert 'https://git.kolkman.org/' in root_page.text
assert 'class="menu-toggle"' in root_page.text
assert 'id="auth-menu" class="auth-menu hidden"' in root_page.text
assert 'id="auth-home-link" href="/">Home</a>' in root_page.text
@@ -259,6 +264,10 @@ def test_public_and_admin_pages_render_html():
assert 'src="/static/logo.svg"' in login_page
assert 'id="auth-session" class="auth-session hidden"' in login_page
assert 'logout.js?v=3' in login_page
about_page = client.get('/about')
assert about_page.status_code == 200
assert 'Save the good stuff' in about_page.text
assert 'id="auth-about-link" href="/about"' in about_page.text
assert client.get('/admin').status_code == 200
admin_page = client.get('/admin').text
assert 'Admin' in admin_page