Skip to content

Commit 055895a

Browse files
authored
Merge pull request #13 from getsentry/cwlw/skip-test
Add a test for #10
2 parents 85e7367 + 7f77d4d commit 055895a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test_pytest_responses.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ def test_1(self):
4343
def test_2(self):
4444
responses.add(responses.GET, 'http://responses.invalid', json=2)
4545
assert requests.get('http://responses.invalid').json() == 2
46+
47+
48+
class TestSkip:
49+
"""
50+
Ensure that we don't choke on skipped tests.
51+
"""
52+
@pytest.mark.skip
53+
def test_1(self):
54+
assert 2 + 2 == 5
55+
56+
def test_2(self):
57+
responses.add(responses.GET, 'http://responses.invalid', json='foo')
58+
assert requests.get('http://responses.invalid').json() == 'foo'

0 commit comments

Comments
 (0)