diff options
author | codl <[email protected]> | 2017-11-27 20:42:54 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 20:42:54 +0100 |
commit | 508d1d2ddd157e02574db1138acda9f3f997f023 (patch) | |
tree | 4752a99e695901690d195fb995f03fb35382caa3 | |
parent | 29b73a57b8a3ab7df7d71d75634be582e542a803 (diff) | |
download | mastodon.py-508d1d2ddd157e02574db1138acda9f3f997f023.tar.gz |
hooks: mark failing test resolved in upstream as xfail
-rw-r--r-- | tests/test_hooks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_hooks.py b/tests/test_hooks.py index b31343c..905672d 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py | |||
@@ -1,10 +1,13 @@ | |||
1 | import pytest | 1 | import pytest |
2 | from datetime import datetime | 2 | from datetime import datetime |
3 | 3 | ||
4 | |||
4 | @pytest.mark.vcr() | 5 | @pytest.mark.vcr() |
5 | def test_id_hook(status): | 6 | def test_id_hook(status): |
6 | assert isinstance(status['id'], int) | 7 | assert isinstance(status['id'], int) |
7 | 8 | ||
9 | |||
10 | @pytest.mark.xfail(reason='fixed in upstream') | ||
8 | @pytest.mark.vcr() | 11 | @pytest.mark.vcr() |
9 | def test_id_hook_in_reply_to(api, status): | 12 | def test_id_hook_in_reply_to(api, status): |
10 | reply = api.status_post('Reply!', in_reply_to_id=status['id']) | 13 | reply = api.status_post('Reply!', in_reply_to_id=status['id']) |
@@ -14,6 +17,7 @@ def test_id_hook_in_reply_to(api, status): | |||
14 | finally: | 17 | finally: |
15 | api.status_delete(reply['id']) | 18 | api.status_delete(reply['id']) |
16 | 19 | ||
20 | |||
17 | @pytest.mark.vcr() | 21 | @pytest.mark.vcr() |
18 | def test_id_hook_within_reblog(api, status): | 22 | def test_id_hook_within_reblog(api, status): |
19 | reblog = api.status_reblog(status['id']) | 23 | reblog = api.status_reblog(status['id']) |