forked from github/pelican
use also SIMPLE_THEME in test_settings.py
This commit is contained in:
parent
5642f11367
commit
d71bae7ee5
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ import locale
|
||||||
from os.path import dirname, abspath, join
|
from os.path import dirname, abspath, join
|
||||||
|
|
||||||
from pelican.settings import (read_settings, configure_settings,
|
from pelican.settings import (read_settings, configure_settings,
|
||||||
DEFAULT_CONFIG, DEFAULT_THEME)
|
DEFAULT_CONFIG, DEFAULT_THEME, SIMPLE_THEME)
|
||||||
from pelican.tests.support import unittest
|
from pelican.tests.support import unittest
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ class TestSettingsConfiguration(unittest.TestCase):
|
||||||
# These 4 settings are required to run configure_settings
|
# These 4 settings are required to run configure_settings
|
||||||
'PATH': '.',
|
'PATH': '.',
|
||||||
'THEME': DEFAULT_THEME,
|
'THEME': DEFAULT_THEME,
|
||||||
'THEMES': ['simple', ('!simple', 'simple')],
|
'THEMES': [SIMPLE_THEME, ['!simple', SIMPLE_THEME]],
|
||||||
'SITEURL': 'http://blog.notmyidea.org/',
|
'SITEURL': 'http://blog.notmyidea.org/',
|
||||||
'LOCALE': '',
|
'LOCALE': '',
|
||||||
}
|
}
|
||||||
|
|
@ -91,7 +91,7 @@ class TestSettingsConfiguration(unittest.TestCase):
|
||||||
'LOCALE': '',
|
'LOCALE': '',
|
||||||
'PATH': os.curdir,
|
'PATH': os.curdir,
|
||||||
'THEME': DEFAULT_THEME,
|
'THEME': DEFAULT_THEME,
|
||||||
'THEMES': ['simple', ('!simple', 'simple')],
|
'THEMES': [SIMPLE_THEME, ['!simple', SIMPLE_THEME]],
|
||||||
}
|
}
|
||||||
configure_settings(settings)
|
configure_settings(settings)
|
||||||
# SITEURL should not have a trailing slash
|
# SITEURL should not have a trailing slash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue