mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use the en-us locale for functional tests
This commit is contained in:
parent
9847394e12
commit
d7caaded3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue