aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_account.py')
-rw-r--r--tests/test_account.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/tests/test_account.py b/tests/test_account.py
index dad17e8..700433f 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -69,7 +69,6 @@ def test_account_follow_unfollow(api, api2):
69 assert relationship 69 assert relationship
70 assert not relationship['following'] 70 assert not relationship['following']
71 71
72
73@pytest.mark.vcr() 72@pytest.mark.vcr()
74def test_account_block_unblock(api, api2): 73def test_account_block_unblock(api, api2):
75 api2_id = api2.account_verify_credentials().id 74 api2_id = api2.account_verify_credentials().id
@@ -82,7 +81,6 @@ def test_account_block_unblock(api, api2):
82 assert relationship 81 assert relationship
83 assert not relationship['blocking'] 82 assert not relationship['blocking']
84 83
85
86@pytest.mark.vcr() 84@pytest.mark.vcr()
87def test_account_mute_unmute(api, api2): 85def test_account_mute_unmute(api, api2):
88 api2_id = api2.account_verify_credentials().id 86 api2_id = api2.account_verify_credentials().id
@@ -110,7 +108,6 @@ def test_blocks(api):
110 blocks = api.blocks() 108 blocks = api.blocks()
111 assert isinstance(blocks, list) 109 assert isinstance(blocks, list)
112 110
113
114@pytest.mark.vcr(match_on=['path']) 111@pytest.mark.vcr(match_on=['path'])
115def test_account_update_credentials(api): 112def test_account_update_credentials(api):
116 with open('tests/image.jpg', 'rb') as f: 113 with open('tests/image.jpg', 'rb') as f:
@@ -264,3 +261,22 @@ def test_account_notes(api, api2):
264 relationship = api.account_note_set(api2.account_verify_credentials(), "top ebayer gerne wieder") 261 relationship = api.account_note_set(api2.account_verify_credentials(), "top ebayer gerne wieder")
265 assert relationship 262 assert relationship
266 assert relationship.note == "top ebayer gerne wieder" 263 assert relationship.note == "top ebayer gerne wieder"
264
265@pytest.mark.vcr()
266def test_follow_with_notify_reblog(api, api2, api3):
267 api2_id = api2.account_verify_credentials()
268 try:
269 api.account_follow(api2_id, notify = True, reblogs = False)
270 status1 = api3.toot("rootin tooting and shootin")
271 time.sleep(1)
272 status2 = api2.toot("horses are not real")
273 api2.status_reblog(status1)
274 time.sleep(3)
275 notifications = api.notifications()
276 timeline = api.timeline(local=True)
277 assert timeline[0].id == status2.id
278 assert notifications[0].status.id == status2.id
279 finally:
280 api.account_unfollow(api2_id)
281 api3.status_delete(status1)
282 api2.status_delete(status2)
Powered by cgit v1.2.3 (git 2.41.0)