From 4d6ddd0af3775c992fed642153c0cb96c66fed23 Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Sat, 24 Nov 2012 00:41:25 +0100 Subject: [PATCH] fix failing tests --- tests/content/TestCategory/article_with_category.rst | 1 + tests/test_generators.py | 3 +++ tests/test_webassets.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/content/TestCategory/article_with_category.rst b/tests/content/TestCategory/article_with_category.rst index 7ed6e6d1..69ffa98b 100644 --- a/tests/content/TestCategory/article_with_category.rst +++ b/tests/content/TestCategory/article_with_category.rst @@ -2,5 +2,6 @@ This is an article with category ! ################################## :category: yeah +:date: 1970-01-01 This article should be in 'yeah' category. 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_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):