Commit b68eaa08 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Remove the dependency to the locale module.

parent 1c10b63a
......@@ -5,7 +5,6 @@
import datetime
import filters
import harvest_tools
import locale
import plugin_dbui as dbui
from callbacks import (INHIBIT_CASCADE_DELETE,
......@@ -46,8 +45,6 @@ T.set_current_languages('en', 'en-gb', 'en-us') # mother tongue
T.force('fr-fr') # user language
T.lazy = False # immediate translation
locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8")
#-------------------------------------------------------------------------------
#
# CONSTANTS
......
......@@ -2,7 +2,6 @@
"""test harvest_tools functions
"""
import locale
import pytest
......@@ -10,10 +9,6 @@ from gluon import current
from harvest_tools import format_author_fr, search_synonym, ToolException
from invenio_tools import load_record
def test_locale():
"""Check that the locale language is the correct French."""
assert locale.getlocale() == ('fr_FR', 'UTF-8')
def test_author_type():
"""Check the type of string returns by the author functions is unicode."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment