Gitub actions (#53)

* push action

Initial scratch pad

* #26 requirements.txt added

* #26 unit test failures fixes

* #26 install theme in action

python3 compatible test

* #26 test failure fixes based on new pelican

* #26 python3 test fixes
This commit is contained in:
Arul 2019-09-02 22:27:15 +05:30 committed by GitHub
parent a31ff4e2c9
commit b7c3285563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 78 additions and 10 deletions

View file

@ -13,7 +13,7 @@ def tearDownModule():
print("teardown module")
try:
rmtree(OUTPUT_DIR)
except OSError, e:
except OSError as e:
print ("Error: %s - %s." % (e.filename,e.strerror))
class ArticleCoverImageTest(unittest.TestCase, BaseTest):
@ -59,7 +59,7 @@ class ArticleCoverImageTest(unittest.TestCase, BaseTest):
def test_article_theme_cover(self):
rstPath="content/article_without_cover.rst"
result, soup = self.gen_article_and_html_from_rst(rstPath)
selected = soup.find(id="blog-header")
selected = soup.find(id="post-header")
# Assertion
self.assertTrue("class" not in selected)