forked from github/pelican
Add {PAGE,ARTICLE}_PATHS to {ARTICLE,PAGE}_EXCLUDES automatically
This makes it easier for someone to change PAGE_PATHS without the need to change ARTICLE_EXCLUDES accordingly.
This commit is contained in:
parent
21882fd4a0
commit
6aa0e4346d
3 changed files with 22 additions and 5 deletions
|
|
@ -43,7 +43,10 @@ class TestSettingsConfiguration(unittest.TestCase):
|
|||
# Providing no file should return the default values.
|
||||
settings = read_settings(None)
|
||||
expected = copy.deepcopy(DEFAULT_CONFIG)
|
||||
expected['FEED_DOMAIN'] = '' # Added by configure settings
|
||||
# Added by configure settings
|
||||
expected['FEED_DOMAIN'] = ''
|
||||
expected['ARTICLE_EXCLUDES'] = ['pages']
|
||||
expected['PAGE_EXCLUDES'] = ['']
|
||||
self.maxDiff = None
|
||||
self.assertDictEqual(settings, expected)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue