Skip to content

Commit ca247ce

Browse files
committed
test: add test_use_UnixAdapter_directly
This new test tests using the `UnixAdapter` directly, like [httpie-unixsocket](https://github.com/httpie/httpie-unixsocket) does. I wrote this test because I found a case, on the `pluggable-urlparse` branch, where tests were passing, but executing: ``` http http+unix://%2Fvar%2Frun%2Fdocker.sock/info ``` was failing.
1 parent bb153b1 commit ca247ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requests_unixsocket/tests/test_requests_unixsocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_use_UnixAdapter_directly():
5151
"""Test using UnixAdapter directly, because
5252
https://github.com/httpie/httpie-unixsocket does this
5353
"""
54-
adapter = requests_unixsocket.UnixAdapter()
54+
adapter = UnixAdapter()
5555
prepared_request = requests.Request(
5656
method='GET',
5757
url='http+unix://%2Fvar%2Frun%2Fdocker.sock/info',

0 commit comments

Comments
 (0)