Add FCM device registration and Gitea bug reporter

This commit is contained in:
2026-09-15 01:01:08 +02:00
parent b2af866cf0
commit b96b1890d2
33 changed files with 1232 additions and 18 deletions
+2 -1
View File
@@ -121,7 +121,8 @@ class TranslationTests(unittest.TestCase):
current_language.set(language)
for path in Path(main.BASE_DIR, 'templates').glob('*.html'):
with self.subTest(language=language, template=path.name):
page = env.get_template(path.name).render(**context)
from bug_reporter import CATEGORIES, SEVERITIES
page = env.get_template(path.name).render(**context, categories=CATEGORIES, severities=SEVERITIES, form={})
if not path.name.startswith('_'):
self.assertIn(f'<html lang="{language}">', page)
self.assertIn('class="language-switch"', page)