1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Antoine Brenner 7277c95fb5 Make sure locale is what we want before/after the tests
The locale is a global state, and it was not properly reset to
whatever it was before the unitttest possibly changed it.
This is now fixed.

Not restoring the locale led to weird issues: depending on
the order chosen by "python -m unittest discover" to run
the unit tests, some tests would apparently randomly fail
due to the locale not being what was expected.

For example, test_period_in_timeperiod_archive would
call mock('posts/1970/ 1月/index.html',...) instead of
expected mock('posts/1970/Jan/index.html',...) and fail.
2014-04-15 16:45:45 +02:00
..
tests Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
themes Run tag name through escape filter to avoid invalid HTML 2014-02-18 15:01:31 +01:00
tools Add s3cmd MIME type detection 2014-04-15 10:31:07 -04:00
__init__.py Cache content to speed up reading. Fixes #224. 2014-04-15 08:57:38 -04:00
contents.py Cache content to speed up reading. Fixes #224. 2014-04-15 08:57:38 -04:00
generators.py Fix unittest issue related to python2/python3 differences 2014-04-15 16:44:15 +02:00
log.py Minor text changes to log message limitation 2014-04-14 16:18:07 -04:00
paginator.py Fix Issue #1165 allows extensions to be set by certain settings 2014-03-08 20:33:23 -05:00
readers.py Limit and filter logs 2014-04-01 20:44:09 +02:00
rstdirectives.py Support for pygment defaults and relevant documentation 2013-09-15 23:13:17 -07:00
server.py Allow socket address reuse; fixed #1264 2014-02-14 14:20:38 -08:00
settings.py Cache content to speed up reading. Fixes #224. 2014-04-15 08:57:38 -04:00
signals.py add signal article_generator_pretaxonomy 2014-02-07 08:34:27 +01:00
urlwrappers.py Allow text substitutions when generating slugs 2013-07-04 12:17:21 +01:00
utils.py Cache content to speed up reading. Fixes #224. 2014-04-15 08:57:38 -04:00
writers.py change the inhibition value of *_SAVE_AS to '' 2014-03-31 19:38:49 +02:00