From 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 7 May 2018 00:53:13 +0200 Subject: Fix some bugs, update tests --- tests/test_streaming.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_streaming.py') diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 33d1381..20651bd 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -274,6 +274,10 @@ def test_multiline_payload(): def test_stream_user(api, api2): patchStreaming() + # Make sure we are in the right state to not receive updates from api2 + user = api2.account_verify_credentials() + api2.account_unfollow(user) + updates = [] notifications = [] deletes = [] @@ -319,6 +323,10 @@ def test_stream_user(api, api2): def test_stream_user_local(api, api2): patchStreaming() + # Make sure we are in the right state to not receive updates from api2 + user = api2.account_verify_credentials() + api2.account_unfollow(user) + updates = [] notifications = [] listener = CallbackStreamListener( -- cgit v1.2.3