diff options
author | codl <[email protected]> | 2017-11-27 14:35:02 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 14:35:02 +0100 |
commit | 304145f4420180b23e0836a6d11fc0cec0e341bd (patch) | |
tree | e35d03c41a4f6b3f11c52257b62d0c4666ea9ce3 /tests/test_hooks.py | |
parent | cfc9c1ce0c6440506d3a88397c65ad47bdd2d662 (diff) | |
download | mastodon.py-304145f4420180b23e0836a6d11fc0cec0e341bd.tar.gz |
rename mastodon and mastodon_anonymous fixtures to api, api_anonymous
it was starting to get confusing
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() |