1
0
Fork 0
forked from github/pelican

use also SIMPLE_THEME in test_settings.py

This commit is contained in:
Ondrej Grover 2014-11-05 19:45:58 +01:00
commit d71bae7ee5

View file

@ -6,7 +6,7 @@ import locale
from os.path import dirname, abspath, join
from pelican.settings import (read_settings, configure_settings,
DEFAULT_CONFIG, DEFAULT_THEME)
DEFAULT_CONFIG, DEFAULT_THEME, SIMPLE_THEME)
from pelican.tests.support import unittest
@ -73,7 +73,7 @@ class TestSettingsConfiguration(unittest.TestCase):
# These 4 settings are required to run configure_settings
'PATH': '.',
'THEME': DEFAULT_THEME,
'THEMES': ['simple', ('!simple', 'simple')],
'THEMES': [SIMPLE_THEME, ['!simple', SIMPLE_THEME]],
'SITEURL': 'http://blog.notmyidea.org/',
'LOCALE': '',
}
@ -91,7 +91,7 @@ class TestSettingsConfiguration(unittest.TestCase):
'LOCALE': '',
'PATH': os.curdir,
'THEME': DEFAULT_THEME,
'THEMES': ['simple', ('!simple', 'simple')],
'THEMES': [SIMPLE_THEME, ['!simple', SIMPLE_THEME]],
}
configure_settings(settings)
# SITEURL should not have a trailing slash