We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfd579 commit cedf171Copy full SHA for cedf171
example.py
@@ -27,6 +27,6 @@ async def main():
27
data.meta["altitude"],
28
)
29
30
-
+
31
if __name__ == "__main__":
32
asyncio.run(main())
tests/test_timeout.py
@@ -8,6 +8,7 @@
8
9
SENSOR_ID = 1
10
11
12
@pytest.mark.asyncio
13
async def test_connect_timeout(httpx_mock: HTTPXMock):
14
"""Test if the connection is hitting the timeout during connect."""
@@ -24,6 +25,7 @@ def raise_timeout(request):
24
25
client = Luftdaten(SENSOR_ID)
26
await client.get_data()
async def test_read_timeout(httpx_mock: HTTPXMock):
"""Test if the connection is hitting the timeout during data reading."""
0 commit comments