1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests
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
..
content Merge pull request #1293 from jeanlauliac/typogrify-summary 2014-03-30 12:08:05 -07:00
output add lang support for drafts (#826 & #1107) 2014-02-23 14:03:09 +01:00
TestPages Move the tests into pelican. Fix #500 2013-03-06 00:41:27 -08:00
__init__.py Fix for issue #392 2013-03-27 18:17:11 -04:00
default_conf.py added testing for default locale setting 2013-07-21 14:12:21 +08:00
support.py tests.support: Use kwargs overrides in get_settings() 2013-06-02 14:24:27 -04:00
test_contents.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_generators.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_importer.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_paginator.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_pelican.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_readers.py Merge pull request #1293 from jeanlauliac/typogrify-summary 2014-03-30 12:08:05 -07:00
test_settings.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00
test_utils.py Make sure locale is what we want before/after the tests 2014-04-15 16:45:45 +02:00