After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
diff --git a/tests/output/basic/tag/yeah.html b/tests/output/basic/tag/yeah.html
index 1e91b765..fb6909b4 100644
--- a/tests/output/basic/tag/yeah.html
+++ b/tests/output/basic/tag/yeah.html
@@ -44,9 +44,7 @@
By Alexis Métaireau
Why not ?
After all, why not ? It's pretty simple to do it, and it will allow me to write my blogposts in rst !
diff --git a/tests/test_generators.py b/tests/test_generators.py
index ba7ff240..f8f6a3f4 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -31,6 +31,7 @@ class TestArticlesGenerator(unittest.TestCase):
settings = _DEFAULT_CONFIG.copy()
settings['ARTICLE_DIR'] = 'content'
settings['DEFAULT_CATEGORY'] = 'Default'
+ settings['DEFAULT_DATE'] = (1970, 01, 01)
self.generator = ArticlesGenerator(settings.copy(), settings,
CUR_DIR, _DEFAULT_CONFIG['THEME'], None,
_DEFAULT_CONFIG['MARKUP'])
@@ -93,6 +94,7 @@ class TestArticlesGenerator(unittest.TestCase):
settings = _DEFAULT_CONFIG.copy()
settings['ARTICLE_DIR'] = 'content'
settings['DEFAULT_CATEGORY'] = 'Default'
+ settings['DEFAULT_DATE'] = (1970, 01, 01)
settings['USE_FOLDER_AS_CATEGORY'] = False
generator = ArticlesGenerator(settings.copy(), settings,
CUR_DIR, _DEFAULT_CONFIG['THEME'], None,
@@ -175,6 +177,7 @@ class TestPageGenerator(unittest.TestCase):
settings = _DEFAULT_CONFIG.copy()
settings['PAGE_DIR'] = 'TestPages'
+ settings['DEFAULT_DATE'] = (1970, 01, 01)
generator = PagesGenerator(settings.copy(), settings, CUR_DIR,
_DEFAULT_CONFIG['THEME'], None,
_DEFAULT_CONFIG['MARKUP'])
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
diff --git a/tests/test_webassets.py b/tests/test_webassets.py
index 52a7fa17..afe1674d 100644
--- a/tests/test_webassets.py
+++ b/tests/test_webassets.py
@@ -80,7 +80,7 @@ class TestWebAssetsRelativeURLS(TestWebAssets):
self.check_link_tag(
'.././theme/gen/style.{0}.min.css'.format(CSS_HASH),
- os.path.join(self.temp_path, 'category/misc.html'))
+ os.path.join(self.temp_path, 'category/yeah.html'))
class TestWebAssetsAbsoluteURLS(TestWebAssets):