aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_streaming.py')
-rw-r--r--tests/test_streaming.py8
1 files changed, 8 insertions, 0 deletions
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():
274def test_stream_user(api, api2): 274def test_stream_user(api, api2):
275 patchStreaming() 275 patchStreaming()
276 276
277 # Make sure we are in the right state to not receive updates from api2
278 user = api2.account_verify_credentials()
279 api2.account_unfollow(user)
280
277 updates = [] 281 updates = []
278 notifications = [] 282 notifications = []
279 deletes = [] 283 deletes = []
@@ -319,6 +323,10 @@ def test_stream_user(api, api2):
319def test_stream_user_local(api, api2): 323def test_stream_user_local(api, api2):
320 patchStreaming() 324 patchStreaming()
321 325
326 # Make sure we are in the right state to not receive updates from api2
327 user = api2.account_verify_credentials()
328 api2.account_unfollow(user)
329
322 updates = [] 330 updates = []
323 notifications = [] 331 notifications = []
324 listener = CallbackStreamListener( 332 listener = CallbackStreamListener(
Powered by cgit v1.2.3 (git 2.41.0)