diff --git a/tests/controller/test_project.py b/tests/controller/test_project.py index 6d0550ab..5c788a1b 100644 --- a/tests/controller/test_project.py +++ b/tests/controller/test_project.py @@ -78,7 +78,7 @@ def test_json(tmpdir): "snap_to_grid": False, "grid_size": 0, "supplier": None, - "variables": [] + "variables": None } diff --git a/tests/handlers/api/compute/test_project.py b/tests/handlers/api/compute/test_project.py index a1e1cd42..9db5350a 100644 --- a/tests/handlers/api/compute/test_project.py +++ b/tests/handlers/api/compute/test_project.py @@ -21,9 +21,6 @@ This test suite check /project endpoint import uuid import os -import asyncio -import aiohttp -import zipfile from unittest.mock import patch from tests.utils import asyncio_patch @@ -60,9 +57,10 @@ def test_show_project(http_compute): response = http_compute.post("/projects", query) assert response.status == 201 response = http_compute.get("/projects/40010203-0405-0607-0809-0a0b0c0d0e02", example=True) - assert len(response.json.keys()) == 2 + assert len(response.json.keys()) == 3 assert response.json["project_id"] == "40010203-0405-0607-0809-0a0b0c0d0e02" assert response.json["name"] == "test" + assert response.json["variables"] is None def test_show_project_invalid_uuid(http_compute):