mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add missing methods
This commit is contained in:
parent
ebf0da0f7b
commit
bf6a4ad747
1 changed files with 6 additions and 0 deletions
|
|
@ -58,6 +58,12 @@ class TestArticlesGenerator(unittest.TestCase):
|
||||||
cls.generator.generate_context()
|
cls.generator.generate_context()
|
||||||
cls.articles = cls.distill_articles(cls.generator.articles)
|
cls.articles = cls.distill_articles(cls.generator.articles)
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.temp_cache = mkdtemp(prefix='pelican_cache.')
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
rmtree(self.temp_cache)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def distill_articles(articles):
|
def distill_articles(articles):
|
||||||
return [[article.title, article.status, article.category.name,
|
return [[article.title, article.status, article.category.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue