diff --git a/tests/test_1079_cron_session_project.py b/tests/test_1079_cron_session_project.py index c5108045..b3e293da 100644 --- a/tests/test_1079_cron_session_project.py +++ b/tests/test_1079_cron_session_project.py @@ -71,13 +71,18 @@ def test_is_cron_session(): def test_cron_jobs_project_i18n_key_exists(): - """All 8 locales must have the cron_jobs_project i18n key.""" + """Every shipped locale must have the cron_jobs_project i18n key. + + Test was originally written for 8 locales; v0.50.264 added Japanese, + bringing the count to 9. Use >= so future locale additions don't + require touching this test. + """ i18n_path = pathlib.Path(__file__).resolve().parent.parent / "static" / "i18n.js" content = i18n_path.read_text(encoding="utf-8") # Count occurrences of cron_jobs_project count = content.count("cron_jobs_project:") - assert count == 8, f"Expected 8 locale entries for cron_jobs_project, found {count}" + assert count >= 9, f"Expected >= 9 locale entries for cron_jobs_project, found {count}" def test_cron_session_gets_project_id_in_cli_list(): diff --git a/tests/test_csv_table_rendering.py b/tests/test_csv_table_rendering.py index fce794b2..a9c125ad 100644 --- a/tests/test_csv_table_rendering.py +++ b/tests/test_csv_table_rendering.py @@ -115,7 +115,7 @@ def test_csv_i18n_keys(): required_keys = ['csv_loading', 'csv_too_large', 'csv_no_data', 'csv_error'] for key in required_keys: count = src.count(f"{key}:") - assert count == 7, f"Key '{key}' found {count} times, expected 7" + assert count >= 8, f"Key '{key}' found {count} times, expected >= 8 (one per locale)" def test_csv_css_classes(): diff --git a/tests/test_excalidraw_inline_embed.py b/tests/test_excalidraw_inline_embed.py index a698062e..c407e108 100644 --- a/tests/test_excalidraw_inline_embed.py +++ b/tests/test_excalidraw_inline_embed.py @@ -147,7 +147,7 @@ def test_excalidraw_i18n_keys(): ] for key in required_keys: count = src.count(f"{key}:") - assert count == 7, f"Key '{key}' found {count} times, expected 7" + assert count >= 8, f"Key '{key}' found {count} times, expected >= 8 (one per locale)" def test_excalidraw_css_classes(): diff --git a/tests/test_issue483_inline_diff_viewer.py b/tests/test_issue483_inline_diff_viewer.py index 5e8ff243..2fd8573c 100644 --- a/tests/test_issue483_inline_diff_viewer.py +++ b/tests/test_issue483_inline_diff_viewer.py @@ -97,4 +97,4 @@ class TestDiffI18n: with open("static/i18n.js", "r", encoding="utf-8") as f: content = f.read() count = content.count("diff_loading") - assert count == 7, f"diff_loading found {count} times, expected 7" + assert count >= 8, f"diff_loading found {count} times, expected >= 8 (one per locale)" diff --git a/tests/test_session_batch_select.py b/tests/test_session_batch_select.py index b5ff9dc5..1d0cdb3a 100644 --- a/tests/test_session_batch_select.py +++ b/tests/test_session_batch_select.py @@ -103,7 +103,7 @@ def test_batch_select_i18n_keys(): # Count occurrences - each key should appear in all 7 locales for key in required_keys: count = src.count(f"{key}:") - assert count == 7, f"Key '{key}' found {count} times, expected 7 (one per locale)" + assert count >= 8, f"Key '{key}' found {count} times, expected >= 8 (one per locale) (one per locale)" def test_batch_select_css_exists(): diff --git a/tests/test_svg_audio_video_rendering.py b/tests/test_svg_audio_video_rendering.py index 561b8f45..40475917 100644 --- a/tests/test_svg_audio_video_rendering.py +++ b/tests/test_svg_audio_video_rendering.py @@ -118,7 +118,7 @@ def test_i18n_keys(): ] for key in required_keys: count = src.count(f"{key}:") - assert count == 7, f"Key '{key}' found {count} times, expected 7" + assert count >= 8, f"Key '{key}' found {count} times, expected >= 8 (one per locale)" def test_css_classes_exist():