From 1f49f426e607eec7bff4910684340ec212505d4c Mon Sep 17 00:00:00 2001 From: Mateusz Litwin Date: Fri, 25 Oct 2024 10:02:07 -0700 Subject: [PATCH] Update test_models.py --- tests/test_models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_models.py b/tests/test_models.py index e10248e3..63e70156 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -43,11 +43,15 @@ def test_url_cannot_include_unicode_strings(): def test_url_origin_socks5(): url = httpcore.URL("socks5://127.0.0.1") - assert url.origin == httpcore.Origin(scheme=b"socks5", host=b"127.0.0.1", port=1080) + assert url.origin == httpcore.Origin( + scheme=b"socks5", host=b"127.0.0.1", port=1080 + ) assert str(url.origin) == "socks5://127.0.0.1:1080" url = httpcore.URL("socks5h://127.0.0.1") - assert url.origin == httpcore.Origin(scheme=b"socks5h", host=b"127.0.0.1", port=1080) + assert url.origin == httpcore.Origin( + scheme=b"socks5h", host=b"127.0.0.1", port=1080 + ) assert str(url.origin) == "socks5h://127.0.0.1:1080"