Skip to content
Permalink
Browse files

lint

  • Loading branch information
ralsina committed Jun 23, 2017
1 parent a64934d commit 62b7ff2fc06ea5bf3329443b2e607055c780fdb4
Showing with 10 additions and 11 deletions.
  1. +10 −11 tests/test_rss_feeds.py
@@ -48,17 +48,16 @@ def setUp(self):
self.blog_url = "http://some.blog"

with mock.patch('nikola.post.get_meta',
mock.Mock(return_value=
defaultdict(str, {'title': 'post title',
'slug': 'awesome_article',
'date': '2012-10-01 22:41',
'author': None,
'tags': 'tags',
'link': 'link',
'description': 'description',
'enclosure': 'http://www.example.org/foo.mp3',
'enclosure_length': '5'})
)):
mock.Mock(return_value=defaultdict(str, {
'title': 'post title',
'slug': 'awesome_article',
'date': '2012-10-01 22:41',
'author': None,
'tags': 'tags',
'link': 'link',
'description': 'description',
'enclosure': 'http://www.example.org/foo.mp3',
'enclosure_length': '5'}))):
with mock.patch('nikola.nikola.utils.os.path.isdir',
mock.Mock(return_value=True)):
with mock.patch('nikola.nikola.Post.text',

0 comments on commit 62b7ff2

Please sign in to comment.
You can’t perform that action at this time.