Skip to content

Commit 34de5fb

Browse files
committed
more isolation
1 parent 8365209 commit 34de5fb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎stream/tests.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,22 @@ def test_follow(self):
148148

149149
def test_follow_private(self):
150150
feed = client.feed('secret:py1')
151+
agg_feed = client.feed('aggregated:test_follow_private')
151152
actor_id = random.randint(10, 100000)
152153
activity_data = {'actor': actor_id, 'verb': 'tweet', 'object': 1}
153154
activity_id = feed.add_activity(activity_data)['id']
154-
self.aggregated2.follow('secret:py1')
155+
agg_feed.follow('secret:py1')
155156
time.sleep(10)
156-
activities = self.aggregated2.get(limit=3)['results']
157+
activities = agg_feed.get(limit=3)['results']
157158
activity = self._get_first_aggregated_activity(activities)
158159
activity_id_found = activity['id'] if activity is not None else None
159160
self.assertEqual(activity_id_found, activity_id)
160161

161162
def test_flat_follow(self):
163+
feed = client.feed('user:test_flat_follow')
162164
activity_data = {'actor': 1, 'verb': 'tweet', 'object': 1}
163-
activity_id = self.user1.add_activity(activity_data)['id']
164-
self.flat3.follow('user:1')
165+
activity_id = feed.add_activity(activity_data)['id']
166+
self.flat3.follow('user:test_flat_follow')
165167
time.sleep(10)
166168
activities = self.flat3.get(limit=3)['results']
167169
activity = self._get_first_activity(activities)

0 commit comments

Comments
 (0)