From 304145f4420180b23e0836a6d11fc0cec0e341bd Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 14:35:02 +0100 Subject: rename mastodon and mastodon_anonymous fixtures to api, api_anonymous it was starting to get confusing --- tests/test_hooks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/test_hooks.py') 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): assert isinstance(status['id'], int) @pytest.mark.vcr() -def test_id_hook_in_reply_to(mastodon, status): - reply = mastodon.status_post('Reply!', in_reply_to_id=status['id']) +def test_id_hook_in_reply_to(api, status): + reply = api.status_post('Reply!', in_reply_to_id=status['id']) try: assert isinstance(reply['in_reply_to_id'], int) assert isinstance(reply['in_reply_to_account_id'], int) finally: - mastodon.status_delete(reply['id']) + api.status_delete(reply['id']) @pytest.mark.vcr() -def test_id_hook_within_reblog(mastodon, status): - reblog = mastodon.status_reblog(status['id']) +def test_id_hook_within_reblog(api, status): + reblog = api.status_reblog(status['id']) try: assert isinstance(reblog['reblog']['id'], int) finally: - mastodon.status_delete(reblog['id']) + api.status_delete(reblog['id']) @pytest.mark.vcr() -- cgit v1.2.3