Example #1
0
def test_stat_with_multiple_languages(temp):
    r1 = basic.update('locale', '_build/locale', ('ja','de','it'))
    r2 = basic.stat('locale', ('ja','de','it'))
    assert r2 == {
        'locale/ja/LC_MESSAGES/README.po': {'translated': 0, 'fuzzy': 0, 'untranslated': 1},
        'locale/de/LC_MESSAGES/README.po': {'translated': 0, 'fuzzy': 0, 'untranslated': 1},
        'locale/it/LC_MESSAGES/README.po': {'translated': 0, 'fuzzy': 0, 'untranslated': 1},
    }
Example #2
0
def test_stat(temp):
    r1 = basic.update('locale', '_build/locale', ('ja', ))
    r2 = basic.stat('locale', ('ja', ))
    assert r2 == {
        'locale/ja/LC_MESSAGES/README.po': {
            'translated': 0,
            'fuzzy': 0,
            'untranslated': 1
        }
    }
Example #3
0
def test_stat_with_multiple_languages(temp):
    r1 = basic.update('locale', '_build/locale', ('ja', 'de', 'it'))
    r2 = basic.stat('locale', ('ja', 'de', 'it'))
    assert r2 == {
        'locale/ja/LC_MESSAGES/README.po': {
            'translated': 0,
            'fuzzy': 0,
            'untranslated': 1
        },
        'locale/de/LC_MESSAGES/README.po': {
            'translated': 0,
            'fuzzy': 0,
            'untranslated': 1
        },
        'locale/it/LC_MESSAGES/README.po': {
            'translated': 0,
            'fuzzy': 0,
            'untranslated': 1
        },
    }
Example #4
0
def test_stat(temp):
    r1 = basic.update('locale', '_build/locale', ('ja',))
    r2 = basic.stat('locale', ('ja',))
    assert r2 == {'locale/ja/LC_MESSAGES/README.po': {'translated': 0, 'fuzzy': 0, 'untranslated': 1}}