diff options
Diffstat (limited to 'tests/test_hooks.py')
-rw-r--r-- | tests/test_hooks.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 132021b..b31343c 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py | |||
@@ -6,21 +6,21 @@ def test_id_hook(status): | |||
6 | assert isinstance(status['id'], int) | 6 | assert isinstance(status['id'], int) |
7 | 7 | ||
8 | @pytest.mark.vcr() | 8 | @pytest.mark.vcr() |
9 | def test_id_hook_in_reply_to(mastodon, status): | 9 | def test_id_hook_in_reply_to(api, status): |
10 | reply = mastodon.status_post('Reply!', in_reply_to_id=status['id']) | 10 | reply = api.status_post('Reply!', in_reply_to_id=status['id']) |
11 | try: | 11 | try: |
12 | assert isinstance(reply['in_reply_to_id'], int) | 12 | assert isinstance(reply['in_reply_to_id'], int) |
13 | assert isinstance(reply['in_reply_to_account_id'], int) | 13 | assert isinstance(reply['in_reply_to_account_id'], int) |
14 | finally: | 14 | finally: |
15 | mastodon.status_delete(reply['id']) | 15 | api.status_delete(reply['id']) |
16 | 16 | ||
17 | @pytest.mark.vcr() | 17 | @pytest.mark.vcr() |
18 | def test_id_hook_within_reblog(mastodon, status): | 18 | def test_id_hook_within_reblog(api, status): |
19 | reblog = mastodon.status_reblog(status['id']) | 19 | reblog = api.status_reblog(status['id']) |
20 | try: | 20 | try: |
21 | assert isinstance(reblog['reblog']['id'], int) | 21 | assert isinstance(reblog['reblog']['id'], int) |
22 | finally: | 22 | finally: |
23 | mastodon.status_delete(reblog['id']) | 23 | api.status_delete(reblog['id']) |
24 | 24 | ||
25 | 25 | ||
26 | @pytest.mark.vcr() | 26 | @pytest.mark.vcr() |