Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update test remote with stable service #231

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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