@@ -991,8 +991,9 @@ def test_instrument_with_no_proxy(self):
991991 proxy_mounts = self .create_proxy_mounts ()
992992 HTTPXClientInstrumentor ().instrument ()
993993 client = self .create_client (mounts = proxy_mounts )
994- self .perform_request (self .URL , client = client )
994+ result = self .perform_request (self .URL , client = client )
995995 self .assert_span (num_spans = 1 )
996+ self .assertEqual (result .text , "Hello!" )
996997 print (client ._mounts )
997998 self .assert_proxy_mounts (
998999 client ._mounts .values (),
@@ -1010,7 +1011,9 @@ def test_instrument_proxy(self):
10101011 2 ,
10111012 )
10121013
1013- @mock .patch .dict ("os.environ" , {"NO_PROXY" : "http://mock" }, clear = True )
1014+ @mock .patch .dict (
1015+ "os.environ" , {"NO_PROXY" : "http://mock/status/200" }, clear = True
1016+ )
10141017 def test_instrument_client_with_no_proxy (self ):
10151018 proxy_mounts = self .create_proxy_mounts ()
10161019 client = self .create_client (mounts = proxy_mounts )
@@ -1027,7 +1030,7 @@ def test_instrument_client_with_no_proxy(self):
10271030 client ._mounts .values (),
10281031 3 ,
10291032 )
1030- HTTPXClientInstrumentor () .uninstrument_client (client )
1033+ HTTPXClientInstrumentor .uninstrument_client (client )
10311034
10321035 def test_instrument_client_with_proxy (self ):
10331036 proxy_mounts = self .create_proxy_mounts ()
0 commit comments