Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Jun 23, 2017
1 parent a64934d commit 62b7ff2
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/test_rss_feeds.py
Expand Up @@ -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',
Expand Down

0 comments on commit 62b7ff2

Please sign in to comment.