From 080c884c1ad52587ccff7d742422625c06e3a8a1 Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Sat, 24 Nov 2012 00:46:03 +0100 Subject: [PATCH] restore test_basic_generation_works functional test --- tests/test_pelican.py | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/tests/test_pelican.py b/tests/test_pelican.py index 762663d2..39c820c8 100644 --- a/tests/test_pelican.py +++ b/tests/test_pelican.py @@ -62,22 +62,17 @@ class TestPelican(unittest.TestCase): self.assertEqual(diff['right_only'], [], msg=msg) self.assertEqual(diff['diff_files'], [], msg=msg) - @unittest.skip("Test failing") def test_basic_generation_works(self): # when running pelican without settings, it should pick up the default - # ones and generate the output without raising any exception / issuing - # any warning. - with patch("pelican.contents.getenv") as mock_getenv: - # force getenv('USER') to always return the same value - mock_getenv.return_value = "Dummy Author" - settings = read_settings(filename=None, override={ - 'PATH': INPUT_PATH, - 'OUTPUT_PATH': self.temp_path, - }) - pelican = Pelican(settings=settings) - pelican.run() - dcmp = dircmp(self.temp_path, os.sep.join((OUTPUT_PATH, "basic"))) - self.assertFilesEqual(recursiveDiff(dcmp)) + # ones and generate correct output without raising any exception + settings = read_settings(filename=None, override={ + 'PATH': INPUT_PATH, + 'OUTPUT_PATH': self.temp_path, + }) + pelican = Pelican(settings=settings) + pelican.run() + dcmp = dircmp(self.temp_path, os.sep.join((OUTPUT_PATH, "basic"))) + self.assertFilesEqual(recursiveDiff(dcmp)) def test_custom_generation_works(self): # the same thing with a specified set of settings should work