pelican/pelican/tests
Justin Mayer 6f36b0a246 Keep certain files when cleaning output; fix #574
If DELETE_OUTPUT_DIRECTORY is set to True, all files and directories are
deleted from the output directory. There are, however, several reasons
one might want to retain certain files/directories and avoid their
deletion from the output directory. One such use case is version control
system data: a versioned output directory can facilitate deployment via
Heroku and/or allow the user to easily revert to a prior version of the
site without having to rely on regeneration via Pelican.

This change introduces the OUTPUT_RETENTION setting, a tuple of
filenames that will be preserved when the clean_output_dir function in
pelican.utils is run. Setting OUTPUT_RETENTION = (".hg", ".git") would,
for example, prevent the relevant VCS data from being deleted when the
output directory is cleaned.
2013-06-25 19:03:32 -07:00
..
content Markdown summary should not include content footnote 2013-05-10 03:50:33 -04:00
output samples: Remove EXTRA_PATH_METADATA entries for pictures 2013-06-15 20:52:16 -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 Update sample configurations from FILES_TO_COPY to EXTRA_PATH_METADATA 2013-06-12 15:02:31 -04:00
support.py tests.support: Use kwargs overrides in get_settings() 2013-06-02 14:24:27 -04:00
test_contents.py tests.support: Use kwargs overrides in get_settings() 2013-06-02 14:24:27 -04:00
test_generators.py Merge pull request #898 from saimn/fix-markup-cli 2013-06-19 06:51:59 -07:00
test_importer.py tests: Avoid hidden logic with better .assert*() method choices 2013-06-12 14:52:23 -04:00
test_pelican.py add feedback to user and refactor 'autoreload' code 2013-04-19 13:35:20 -04:00
test_readers.py test_readers: Update to new readers.read_file 2013-06-12 15:02:31 -04:00
test_settings.py settings: Make DEFAULT_CONFIG public 2013-06-02 13:32:10 -04:00
test_utils.py Keep certain files when cleaning output; fix #574 2013-06-25 19:03:32 -07:00