From 763ab3d905df89698bf672730edf2bcbe404462d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 23:36:52 +0000 Subject: [PATCH] fix(test): resolve translations.json relative to repo instead of hardcoded Windows path Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01THB2EzKrjM4G45oc46dP5k --- tests/test_ui_accessibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ui_accessibility.py b/tests/test_ui_accessibility.py index 648613c..73c6571 100644 --- a/tests/test_ui_accessibility.py +++ b/tests/test_ui_accessibility.py @@ -891,7 +891,7 @@ def test_retranslate_ui_dynamic_language_switch(tmp_path, monkeypatch, qapp): def test_german_ui_texts_use_real_umlauts(): """Verify all German translation strings use real umlauts and no digraph substitutes.""" import json - trans_file = Path("C:/_Local_DEV/repos/UniversalInvoiceMail/locales/translations.json") + trans_file = Path(__file__).resolve().parent.parent / "locales" / "translations.json" data = json.load(trans_file.open("r", encoding="utf-8")) # Common prohibited digraphs in German end-user text