33
44def test_client_base_url ():
55 client = httpx .Client ()
6- client .base_url = "https://www.example.org/" # type: ignore
6+ client .base_url = "https://www.example.org/"
77 assert isinstance (client .base_url , httpx .URL )
88 assert client .base_url == "https://www.example.org/"
99
1010
1111def test_client_base_url_without_trailing_slash ():
1212 client = httpx .Client ()
13- client .base_url = "https://www.example.org/path" # type: ignore
13+ client .base_url = "https://www.example.org/path"
1414 assert isinstance (client .base_url , httpx .URL )
1515 assert client .base_url == "https://www.example.org/path/"
1616
1717
1818def test_client_base_url_with_trailing_slash ():
1919 client = httpx .Client ()
20- client .base_url = "https://www.example.org/path/" # type: ignore
20+ client .base_url = "https://www.example.org/path/"
2121 assert isinstance (client .base_url , httpx .URL )
2222 assert client .base_url == "https://www.example.org/path/"
2323
2424
2525def test_client_headers ():
2626 client = httpx .Client ()
27- client .headers = {"a" : "b" } # type: ignore
27+ client .headers = {"a" : "b" }
2828 assert isinstance (client .headers , httpx .Headers )
2929 assert client .headers ["A" ] == "b"
3030
3131
3232def test_client_cookies ():
3333 client = httpx .Client ()
34- client .cookies = {"a" : "b" } # type: ignore
34+ client .cookies = {"a" : "b" }
3535 assert isinstance (client .cookies , httpx .Cookies )
3636 mycookies = list (client .cookies .jar )
3737 assert len (mycookies ) == 1
@@ -42,7 +42,7 @@ def test_client_timeout():
4242 expected_timeout = 12.0
4343 client = httpx .Client ()
4444
45- client .timeout = expected_timeout # type: ignore
45+ client .timeout = expected_timeout
4646
4747 assert isinstance (client .timeout , httpx .Timeout )
4848 assert client .timeout .connect == expected_timeout
0 commit comments