diff options
author | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-05-07 00:53:13 +0200 |
commit | 8d5fe70c7e52656b2f89d0acfb1aed23bf583041 (patch) | |
tree | a210ef1ba6255d8f64fdd623de41f0e6931c4508 /tests/test_streaming.py | |
parent | c0a0c8f517611d0026d6d37fbe7c57eae1f1a3bb (diff) | |
download | mastodon.py-8d5fe70c7e52656b2f89d0acfb1aed23bf583041.tar.gz |
Fix some bugs, update tests
Diffstat (limited to 'tests/test_streaming.py')
-rw-r--r-- | tests/test_streaming.py | 8 |
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(): | |||
274 | def test_stream_user(api, api2): | 274 | def 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): | |||
319 | def test_stream_user_local(api, api2): | 323 | def 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( |