Visitar URL original
release: 0.1.0 by stainless-app[bot] · Pull Request #1 · unlayer/unlayer-python · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(internal): make test_proxy_environment_variables more resilient
  • Loading branch information
stainless-app[bot] committed Feb 24, 2026
commit 17a5609325e6661d12910c96b3f41ecde33e5cf1
4 changes: 4 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None:
# Test that the proxy environment variables are set correctly
monkeypatch.setenv("HTTPS_PROXY", "https://example.org")
# Delete in case our environment has this set
monkeypatch.delenv("HTTP_PROXY", raising=False)

client = DefaultHttpxClient()

Expand Down Expand Up @@ -1819,6 +1821,8 @@ async def test_get_platform(self) -> None:
async def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None:
# Test that the proxy environment variables are set correctly
monkeypatch.setenv("HTTPS_PROXY", "https://example.org")
# Delete in case our environment has this set
monkeypatch.delenv("HTTP_PROXY", raising=False)

client = DefaultAsyncHttpxClient()

Expand Down