INNER CODE UNIT · Python

test_machine_translated_false_skipped

connectbot/connectbot · translations/test_translate.py:108

    def test_machine_translated_false_skipped(self):
        elem = parse(
            f'<string xmlns:tools="{TOOLS_NS}" '
            f'tools:machine_translated="false" name="x">foo</string>'
        )
        assert needs_translation(elem) is False


# ---------------------------------------------------------------------------
# get_element_text / set_element_text
# ---------------------------------------------------------------------------

class TestElementText:
    def test_get_string(self):
        elem = parse('<string name="x">Hello world</string>')
        assert get_element_text(elem) == "Hello world"

    def test_get_string_array(self):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…