Skip to content

Commit 5558e78

Browse files
authored
httpx: decouple tests from proxy related environment variables (open-telemetry#2822)
1 parent 830397e commit 5558e78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ def test_client_mounts_with_instrumented_transport(self):
723723
spans[1].attributes[SpanAttributes.HTTP_URL], https_url
724724
)
725725

726+
@mock.patch.dict("os.environ", {"NO_PROXY": ""}, clear=True)
726727
class BaseInstrumentorTest(BaseTest, metaclass=abc.ABCMeta):
727728
@abc.abstractmethod
728729
def create_client(

0 commit comments

Comments
 (0)