From 9d2f161ecaea2252b8e8131f097c2ee109d3004b Mon Sep 17 00:00:00 2001 From: Joey Curtin Date: Thu, 28 Mar 2013 15:11:39 -0400 Subject: [PATCH] added theme unittest --- pelican/tests/test_importedsettings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tests/test_importedsettings.py b/pelican/tests/test_importedsettings.py index 8432a7f2..d462a7b4 100644 --- a/pelican/tests/test_importedsettings.py +++ b/pelican/tests/test_importedsettings.py @@ -13,14 +13,14 @@ from pelican.settings.base import _DEFAULT_CONFIG # cd ~/pelican/pelican/tests && python -m unittest discover . 'test_importeds*' && cd - class TestImportLib(unittest.TestCase): def setUp(self): - path = os.path.join(os.path.dirname(__file__), '../..') + self.path = path = os.path.join(os.path.dirname(__file__), '../..') sys.path.append(os.path.abspath(path)) def test_importedsettings(self): self.settings = read_settings(path=None, override={ 'LOCALE': locale.normalize('en_US'), - 'THEME': '/tmp/theme'# You might want tho change this... + 'THEME': '/'.join([self.path, 'themes/simple']) }) from pelican.settings import conf for key in _DEFAULT_CONFIG.keys():