Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Feb 23, 2018
1 parent 657f419 commit 1f8c94d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test_pocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,14 @@ def cached_data(self, key, max_age=None):
CachedData.clear()
self.assertEquals(pocket.get_links(tries=0), {})

def test_add_items(self):
def test_filter_and_add_items(self):
self.assertEquals(len(pocket.WF._items), 0)
pocket.add_items(links={}, user_input='')
pocket.filter_and_add_items(links={}, user_input='')
self.assertEquals(len(pocket.WF._items), 1)
self.assertEquals(pocket.WF._items[0].title, 'No links found for "".')

pocket.WF._items = []
pocket.add_items(links=[{
pocket.filter_and_add_items(links=[{
'item_id': '1',
'given_title': 'test',
'given_url': 'url',
Expand All @@ -257,7 +257,7 @@ def test_add_items(self):
self.assertEquals(pocket.WF._items[0].title, 'test')

pocket.WF._items = []
pocket.add_items(links=[{
pocket.filter_and_add_items(links=[{
'item_id': '1',
'given_title': 'test',
'resolved_title': 'test',
Expand Down

0 comments on commit 1f8c94d

Please # to comment.