MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / test_get_text_all

Method test_get_text_all

tests/TestLanguage.py:99–109  ·  view source on GitHub ↗

Test get_text across all languages

(self)

Source from the content-addressed store, hash-verified

97 self.assertEqual(get_text('Preview'), 'Preview')
98
99 def test_get_text_all(self):
100 """Test get_text across all languages"""
101 for lang_id in get_supported_language_codes():
102 if lang_id in common.SKIP_ALIAS_CODES:
103 continue
104 options.set('forced_language', lang_id)
105 self.assertEqual(get_active_language_code(), lang_id)
106 setup_translation()
107 text = get_text('Preview')
108 self.assertIsInstance(text, str)
109 self.assertTrue(len(text) > 0)
110
111 @skipIfMissingPo
112 def test_get_text_au(self):

Callers

nothing calls this directly

Calls 5

get_active_language_codeFunction · 0.90
setup_translationFunction · 0.90
get_textFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected