Use the en-us locale for functional tests

This commit is contained in:
Alexis Métaireau 2013-01-11 21:24:04 +01:00
commit d7caaded3f

View file

@ -10,8 +10,6 @@ from shutil import rmtree
import locale import locale
import logging import logging
from mock import patch
from pelican import Pelican from pelican import Pelican
from pelican.settings import read_settings from pelican.settings import read_settings
from .support import LogCountHandler from .support import LogCountHandler
@ -73,6 +71,7 @@ class TestPelican(unittest.TestCase):
settings = read_settings(filename=None, override={ settings = read_settings(filename=None, override={
'PATH': INPUT_PATH, 'PATH': INPUT_PATH,
'OUTPUT_PATH': self.temp_path, 'OUTPUT_PATH': self.temp_path,
'LOCALE': locale.normalize('en_US'),
}) })
pelican = Pelican(settings=settings) pelican = Pelican(settings=settings)
pelican.run() pelican.run()
@ -88,6 +87,7 @@ class TestPelican(unittest.TestCase):
settings = read_settings(filename=SAMPLE_CONFIG, override={ settings = read_settings(filename=SAMPLE_CONFIG, override={
'PATH': INPUT_PATH, 'PATH': INPUT_PATH,
'OUTPUT_PATH': self.temp_path, 'OUTPUT_PATH': self.temp_path,
'LOCALE': locale.normalize('en_US'),
}) })
pelican = Pelican(settings=settings) pelican = Pelican(settings=settings)
pelican.run() pelican.run()