Permalink
Browse files

Test the feeds plugin

  • Loading branch information...
saimn committed Jan 6, 2018
1 parent bbc6976 commit 219a7301907b9856f18d12bcd54db76bd5f205e7
Showing with 5 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +4 −0 tests/test_cli.py
View
@@ -32,7 +32,7 @@ addons:
install:
- pip install -U pip setuptools wheel
- pip install -q $PILLOW
- pip install pytest pytest-cov codecov
- pip install pytest pytest-cov codecov feedgenerator
- pip install .
before_script:
View
@@ -67,6 +67,8 @@ def test_build(tmpdir):
watermark = "watermark.png"
watermark_position = "scale"
watermark_opacity = 0.3
rss_feed = {'feed_url': 'http://example.org/feed.rss', 'nb_items': 10}
atom_feed = {'feed_url': 'http://example.org/feed.atom', 'nb_items': 10}
"""
with io.open(config_file, 'w') as f:
@@ -77,6 +79,8 @@ def test_build(tmpdir):
assert result.exit_code == 0
assert os.path.isfile(join(tmpdir, 'build', 'thumbnails',
'exo20101028-b-full.jpg'))
assert os.path.isfile(join(tmpdir, 'build', 'feed.atom'))
assert os.path.isfile(join(tmpdir, 'build', 'feed.rss'))
finally:
os.chdir(cwd)
# Reset logger

0 comments on commit 219a730

Please sign in to comment.