Marcel Telka
2024-03-28 d05562cde9fcafce4892d825c52f3cab58a5a087
commit | author | age
d05562 1 --- httpcore-1.0.5/tests/_async/test_integration.py.orig
MT 2 +++ httpcore-1.0.5/tests/_async/test_integration.py
94e122 3 @@ -6,6 +6,7 @@
MT 4  
5  
6  @pytest.mark.anyio
7 +@pytest.mark.skip(reason="we have no httpbin")
8  async def test_request(httpbin):
9      async with httpcore.AsyncConnectionPool() as pool:
10          response = await pool.request("GET", httpbin.url)
11 @@ -13,6 +14,7 @@
12  
13  
14  @pytest.mark.anyio
15 +@pytest.mark.skip(reason="we have no httpbin")
16  async def test_ssl_request(httpbin_secure):
17      ssl_context = ssl.create_default_context()
18      ssl_context.check_hostname = False
19 @@ -23,6 +25,7 @@
20  
21  
22  @pytest.mark.anyio
23 +@pytest.mark.skip(reason="we have no httpbin")
24  async def test_extra_info(httpbin_secure):
25      ssl_context = ssl.create_default_context()
26      ssl_context.check_hostname = False
d05562 27 --- httpcore-1.0.5/tests/_sync/test_integration.py.orig
MT 28 +++ httpcore-1.0.5/tests/_sync/test_integration.py
94e122 29 @@ -6,6 +6,7 @@
MT 30  
31  
32  
33 +@pytest.mark.skip(reason="we have no httpbin")
34  def test_request(httpbin):
35      with httpcore.ConnectionPool() as pool:
36          response = pool.request("GET", httpbin.url)
37 @@ -13,6 +14,7 @@
38  
39  
40  
41 +@pytest.mark.skip(reason="we have no httpbin")
42  def test_ssl_request(httpbin_secure):
43      ssl_context = ssl.create_default_context()
44      ssl_context.check_hostname = False
45 @@ -23,6 +25,7 @@
46  
47  
48  
49 +@pytest.mark.skip(reason="we have no httpbin")
50  def test_extra_info(httpbin_secure):
51      ssl_context = ssl.create_default_context()
52      ssl_context.check_hostname = False
d05562 53 --- httpcore-1.0.5/tests/test_api.py.orig
MT 54 +++ httpcore-1.0.5/tests/test_api.py
94e122 55 @@ -1,18 +1,23 @@
380d30 56  import json
MT 57  
94e122 58 +import pytest
MT 59 +
380d30 60  import httpcore
94e122 61  
MT 62  
63 +@pytest.mark.skip(reason="we have no httpbin")
64  def test_request(httpbin):
65      response = httpcore.request("GET", httpbin.url)
66      assert response.status == 200
67  
68  
69 +@pytest.mark.skip(reason="we have no httpbin")
70  def test_stream(httpbin):
71      with httpcore.stream("GET", httpbin.url) as response:
72          assert response.status == 200
73  
74  
75 +@pytest.mark.skip(reason="we have no httpbin")
76  def test_request_with_content(httpbin):
77      url = f"{httpbin.url}/post"
78      response = httpcore.request("POST", url, content=b'{"hello":"world"}')