Skip to content

Commit

Permalink
test: update test remote with stable service
Browse files Browse the repository at this point in the history
httpbin has proven pretty flaky, so use something more reliable.

Origin: https://github.com/aaronpowell/httpstatus
Resolves #229

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Jun 21, 2023
1 parent f9ece26 commit 9ada751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_urllib_succeeds_by_default(testdir):
from urllib2 import urlopen
def test_disable_socket_urllib():
assert urlopen('http://httpbin.org/get').getcode() == 200
assert urlopen('https://httpstat.us/200').getcode() == 200
"""
)
result = testdir.runpytest()
Expand All @@ -170,7 +170,7 @@ def test_enabled_urllib_succeeds(testdir):
@pytest.mark.enable_socket
def test_disable_socket_urllib():
assert urlopen('http://httpbin.org/get').getcode() == 200
assert urlopen('https://httpstat.us/200').getcode() == 200
"""
)
result = testdir.runpytest("--disable-socket")
Expand All @@ -190,7 +190,7 @@ def test_disabled_urllib_fails(testdir):
@pytest.mark.disable_socket
def test_disable_socket_urllib():
assert urlopen('http://httpbin.org/get').getcode() == 200
assert urlopen('https://httpstat.us/200').getcode() == 200
"""
)
result = testdir.runpytest()
Expand Down

0 comments on commit 9ada751

Please sign in to comment.