Skip to content
Myr

Add test for invalid port

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent c6a1167 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:test_requests.py+3 added
289 unmodified lines
290 """Connecting to an unknown domain should raise a ConnectionError"""291 with pytest.raises(ConnectionError):292 requests.get("http://fooobarbangbazbing.httpbin.org")293294 with pytest.raises(ConnectionError):295 requests.get("http://httpbin.org:1")296297 def test_basicauth_with_netrc(self):298 auth = ('user', 'pass')299 wrong_auth = ('wronguser', 'wrongpass')300 url = httpbin('basic-auth', 'user', 'pass')
1189 unmodified lines