diff --git a/tests/controller/test_controller.py b/tests/controller/test_controller.py index e52af7b8..7bec5ac5 100644 --- a/tests/controller/test_controller.py +++ b/tests/controller/test_controller.py @@ -490,7 +490,7 @@ def test_appliance_templates(controller, async_run, tmpdir): json.dump(my_appliance, f) with patch("gns3server.config.Config.get_section_config", return_value={"appliances_path": str(tmpdir)}): - controller.load_appliances() + controller.load_appliance_templates() assert len(controller.appliance_templates) > 0 for appliance in controller.appliance_templates.values(): assert appliance.__json__()["status"] != "broken" diff --git a/tests/handlers/api/controller/test_appliance.py b/tests/handlers/api/controller/test_appliance.py index 0758b4a5..a0cadf23 100644 --- a/tests/handlers/api/controller/test_appliance.py +++ b/tests/handlers/api/controller/test_appliance.py @@ -60,7 +60,7 @@ def test_appliance_list(http_controller, controller): def test_appliance_templates_list(http_controller, controller, async_run): - controller.load_appliances() + controller.load_appliance_templates() response = http_controller.get("/appliances/templates", example=True) assert response.status == 200 assert len(response.json) > 0