From 55ce0d1e39772e9d43ed2278a8e94c6f56072a80 Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 22 Dec 2024 17:08:32 -0600 Subject: [PATCH] Fix coverage --- tests/test_errors.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_errors.py b/tests/test_errors.py index dc04d0b..4445fad 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -204,3 +204,8 @@ def test_exception_response_error() -> None: def test_exception_unexpected_status_code() -> None: with pytest.raises(UnexpectedStatusCodeError): Processing(make_response(0, "", {})).process() + + +def test_unkown_scheme(cached_client: Client) -> None: + with pytest.raises(ValueError): + cached_client.request("ftp://example.com") \ No newline at end of file