1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-18 06:18:08 +00:00

Fix appliance template tests.

This commit is contained in:
grossmj 2018-08-19 19:35:45 +07:00
parent 5958a23557
commit 651d8280a7
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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