Exemple #1
0
def test_application_sets_en_as_default_language_code(mocker):
    mocker.patch("locale.getdefaultlocale", return_value=(None, None))
    language_code = configure_locale_and_language()
    assert language_code == "en"
def i18n():
    '''
    Set up locale/language/gettext functions. This enables the use of _().
    '''
    configure_locale_and_language()