Fix offline i18n tests: refresh semantics and complete Monitor catalogs

- Web docs test no longer passes the removed refresh argument.
- i18n messages tests assert that --refresh keeps existing values and
  that only keys listed in --refresh-keys are re-translated.
- Add the new Monitor keys to de, fr, it, pt, sk and sv.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
MacRimi
2026-09-25 22:01:22 +02:00
co-authored by Claude Opus 5.5
parent e8a7ba6f47
commit 91e62b16e0
8 changed files with 315 additions and 11 deletions
@@ -58,7 +58,7 @@ class WebDocsI18nTests(unittest.TestCase):
def test_human_translation_is_not_pending(self):
source = {"title": "Updates", "url": "https://example.com"}
target = {"title": "Actualizaciones", "url": "https://example.com"}
self.assertEqual(MODULE.pending_leaves(source, target, refresh=False), [])
self.assertEqual(MODULE.pending_leaves(source, target), [])
def test_changed_source_text_is_pending_even_with_existing_translation(self):
source = {"title": "Updated installation guidance"}
@@ -67,7 +67,6 @@ class WebDocsI18nTests(unittest.TestCase):
leaves = MODULE.pending_leaves(
source,
target,
refresh=False,
forced_tokens={token},
)
self.assertEqual([leaf.path for leaf in leaves], [("title",)])