File: 0001-Make-aiohttp-use-HTTP-proxy.patch

package info (click to toggle)
aioelectricitymaps 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 568 kB
  • sloc: python: 536; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Edward Betts <edward@4angle.com>
Date: Sun, 16 Feb 2025 19:42:44 -0500
Subject: Make aiohttp use HTTP proxy

---
 tests/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/conftest.py b/tests/conftest.py
index 4ab3f92..92dfe17 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -48,7 +48,7 @@ def _mock_broken_response(responses: aioresponses) -> None:
 async def client() -> AsyncGenerator[ElectricityMaps, None]:
     """Return a ElectricityMaps client."""
     async with (
-        aiohttp.ClientSession() as session,
+        aiohttp.ClientSession(trust_env=True) as session,
         ElectricityMaps(
             token="abc123",
             session=session,