Mercurial > piecrust2
diff tests/test_appconfig.py @ 585:25df894f9ab9
internal: Some fixes to the new app configuration.
* Tweak order of source registration.
* Add some missing default settings.
* Fix some validation code.
* Add better error handling to validation.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 02 Jan 2016 16:39:26 -0800 |
parents | 9ccc933ac2c7 |
children | 3df808b133f8 |
line wrap: on
line diff
--- a/tests/test_appconfig.py Fri Jan 01 23:18:26 2016 -0800 +++ b/tests/test_appconfig.py Sat Jan 02 16:39:26 2016 -0800 @@ -29,7 +29,7 @@ config = PieCrustConfiguration(values=values) # The order of routes is important. Sources, not so much. assert list(map(lambda v: v['source'], config.get('site/routes'))) == [ - 'notes', 'pages', 'posts', 'posts', 'posts', 'theme_pages'] + 'notes', 'posts', 'posts', 'posts', 'pages', 'theme_pages'] assert list(config.get('site/sources').keys()) == [ - 'posts', 'pages', 'notes', 'theme_pages'] + 'pages', 'posts', 'notes', 'theme_pages']