Skip to content

Commit

Permalink
fix one test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Sep 8, 2014
1 parent 692277c commit 2e5d99b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stream/tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dateutil.tz import tzlocal
import stream
import time
from stream.exceptions import ApiKeyException, InputException,\
CustomFieldException
from stream.exceptions import ApiKeyException, InputException
import random
from unittest.case import TestCase

Expand Down Expand Up @@ -63,7 +62,7 @@ def test_heroku_overwrite(self):
self.assertEqual(client.site_id, 'c')

def test_token_retrieval(self):
token = self.user1.token
self.user1.token

def test_add_activity(self):
activity_data = {'actor': 1, 'verb': 'tweet', 'object': 1}
Expand Down Expand Up @@ -293,7 +292,8 @@ def test_mark_read_by_id(self):
ids.append(activity['id'])
self.assertFalse(activity['is_read'])
ids = ids[:2]
activities = notification_feed.get(mark_read=ids)['results']
notification_feed.get(mark_read=ids)
activities = notification_feed.get()['results']
for activity in activities:
if activity['id'] in ids:
self.assertTrue(activity['is_read'])
Expand Down

0 comments on commit 2e5d99b

Please sign in to comment.