aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-11-30 16:01:26 +0100
committerGitHub <[email protected]>2017-11-30 16:01:26 +0100
commitf52c8f5024f4383fbcc645e54d2cbda5038ebd2c (patch)
treef119db9d7ae97de2c7c93ffe043ab5e33a46df92
parent0f753e621a0804dfc8a08e1f5f90972be75c4ff5 (diff)
parent5ecff3544600ca8023369c5729823f73a06b54b3 (diff)
downloadmastodon.py-f52c8f5024f4383fbcc645e54d2cbda5038ebd2c.tar.gz
Merge pull request #110 from codl/fix-xfail-tests
Fix xfail tests
-rw-r--r--tests/test_hooks.py1
-rw-r--r--tests/test_status.py2
2 files changed, 1 insertions, 2 deletions
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):
7 assert isinstance(status['id'], int) 7 assert isinstance(status['id'], int)
8 8
9 9
10@pytest.mark.xfail(reason='fixed in upstream')
11@pytest.mark.vcr() 10@pytest.mark.vcr()
12def test_id_hook_in_reply_to(api, status): 11def test_id_hook_in_reply_to(api, status):
13 reply = api.status_post('Reply!', in_reply_to_id=status['id']) 12 reply = api.status_post('Reply!', in_reply_to_id=status['id'])
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):
45 45
46@pytest.mark.vcr() 46@pytest.mark.vcr()
47@pytest.mark.parametrize('visibility', ('', 'direct', 'private', 'unlisted', 'public', 47@pytest.mark.parametrize('visibility', ('', 'direct', 'private', 'unlisted', 'public',
48 pytest.param('foobar', marks=pytest.mark.xfail()))) 48 pytest.param('foobar', marks=pytest.mark.xfail(strict=True))))
49@pytest.mark.parametrize('spoiler_text', (None, 'Content warning')) 49@pytest.mark.parametrize('spoiler_text', (None, 'Content warning'))
50def test_status_post(api, visibility, spoiler_text): 50def test_status_post(api, visibility, spoiler_text):
51 status = api.status_post( 51 status = api.status_post(
Powered by cgit v1.2.3 (git 2.41.0)