mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-27 22:59:26 +00:00
Fix tests
This commit is contained in:
parent
4758431c76
commit
e17a79e261
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user