Trying to make session embeddable

This commit is contained in:
2025-10-29 17:58:41 +01:00
parent 4d2291526e
commit 692b4803d7
4 changed files with 31 additions and 54 deletions

View File

@@ -9,8 +9,8 @@ from rapt.hydrometer import Hydrometer
@pytest.fixture
async def client(aiohttp_client):
app = web.Application()
await aiohttp_client(app)
yield Client("test", "test")
session = await aiohttp_client(app)
yield Client("test", "test", None)
async def test_get_hydrometers(client):
with aioresponses() as responses: