From 51b221e87fd8b55773af6dc50b55fc2d60b13f62 Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 29 Nov 2017 18:30:30 +0100 Subject: [PATCH 1/2] id hook test shouldn't be marked as expected to fail anymore --- tests/test_hooks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 905672d..c819d6e 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -7,7 +7,6 @@ def test_id_hook(status): assert isinstance(status['id'], int) -@pytest.mark.xfail(reason='fixed in upstream') @pytest.mark.vcr() def test_id_hook_in_reply_to(api, status): reply = api.status_post('Reply!', in_reply_to_id=status['id']) From 5ecff3544600ca8023369c5729823f73a06b54b3 Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 29 Nov 2017 18:34:18 +0100 Subject: [PATCH 2/2] mark the 2 tests that are xfail as strictly xfail --- tests/test_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_status.py b/tests/test_status.py index a5b8b3a..a3945fb 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -45,7 +45,7 @@ def test_toot(api): @pytest.mark.vcr() @pytest.mark.parametrize('visibility', ('', 'direct', 'private', 'unlisted', 'public', - pytest.param('foobar', marks=pytest.mark.xfail()))) + pytest.param('foobar', marks=pytest.mark.xfail(strict=True)))) @pytest.mark.parametrize('spoiler_text', (None, 'Content warning')) def test_status_post(api, visibility, spoiler_text): status = api.status_post(