pelican/pelican/tests
Deniz Turgut ed3209888a Refactor logging handling
Old system was using manual string formatting for log messages.
This caused issues with common operations like exception logging
because often they need to be handled differently for Py2/Py3
compatibility. In order to unify the effort:

 - All logging is changed to `logging.level(msg, arg1, arg2)` style.
 - A `SafeLogger` is implemented to auto-decode exceptions properly
in the args (ref #1403).
 - Custom formatters were overriding useful logging functionality
like traceback outputing (ref #1402). They are refactored to be
more transparent. Traceback information is provided in `--debug`
mode for `read_file` errors in generators.
 - Formatters will now auto-format multiline log messages in order
to make them look related. Similarly, traceback will be formatted in
the same fashion.
 - `pelican.log.LimitFilter` was (ab)using logging message which
would result in awkward syntax for argumented logging style. This
functionality is moved to `extra` keyword argument.
 - Levels for errors that would result skipping a file (`read_file`)
changed from `warning` to `error` in order to make them stand out
among other logs.
 - Small consistency changes to log messages (i.e. changing all
to start with an uppercase letter) and quality-of-life improvements
(some log messages were dumping raw object information).
2014-07-22 12:39:39 -04:00
..
content Remove AsciiDocReader from core. Fixes #1355 2014-06-14 02:17:43 -04:00
output Fix test errors on OSX 2014-06-26 01:01:42 -04: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 Fix #1198, enable custom locale in template rendering, fixes links 2014-06-26 00:00:19 -04:00
test_generators.py Fix test_direct_templates_save_as_false test case 2014-06-27 14:54:18 +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 Refactor logging handling 2014-07-22 12:39:39 -04:00
test_readers.py Reader name now accessible for articles and pages 2014-07-15 00:29:52 +02:00
test_settings.py Add {PAGE,ARTICLE}_PATHS to {ARTICLE,PAGE}_EXCLUDES automatically 2014-05-14 14:30:21 +02:00
test_utils.py Fix #1198, enable custom locale in template rendering, fixes links 2014-06-26 00:00:19 -04:00