Skip to content

Commit

Permalink
test: update test remote with stable service (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman committed Jun 21, 2023
1 parent f9ece26 commit 0653f60
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 0653f60

Please sign in to comment.