Skip to content
Myr

Rework Bytestring Host Test to use PyTest Httpbin

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

authored by Brian Bamsch · committed by Brian Bamsch · parent 1ac56f1 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/test_requests.py+2 added-2 removed
856 unmodified lines
857 s = requests.Session()858 prep = s.prepare_request(req)859 assert prep.url == "https://httpbin.org/"860861 def test_request_with_bytestring_host(self):861 def test_request_with_bytestring_host(self, httpbin):862 s = requests.Session()863 resp = s.request(864 'GET',865 'http://httpbin.org/cookies/set?cookie=value',865 httpbin('cookies/set?cookie=value'),866 allow_redirects=False,867 headers={'Host': b'httpbin.org'}868 )869 assert resp.cookies.get('cookie') == 'value'
1020 unmodified lines