Fix tests

This commit is contained in:
grossmj 2025-01-02 23:17:55 +07:00
parent 4758431c76
commit e17a79e261
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -34,8 +34,10 @@ class TestApplianceRoutes:
# controller.appliance_manager.install_builtin_appliances()
# controller.appliance_manager.load_appliances()
async def test_appliances_list(self, app: FastAPI, client: AsyncClient) -> None:
async def test_appliances_list(self, app: FastAPI, client: AsyncClient, controller: Controller) -> None:
await controller.appliance_manager.install_builtin_appliances()
controller.appliance_manager.load_appliances()
response = await client.get(app.url_path_for("get_appliances"))
assert response.status_code == status.HTTP_200_OK
assert len(response.json()) > 0