Skip to content

Commit e51ab6c

Browse files
committed
test node uuid not following uuid convention
1 parent 723d286 commit e51ab6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

services/web/server/tests/integration/test_project_workflow.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pathlib import Path
1313
from pprint import pprint
1414
from typing import Dict, List, Optional, Union
15+
from uuid import uuid4
1516

1617
import pytest
1718
import sqlalchemy as sa
@@ -265,10 +266,12 @@ async def test_workflow(
265266
modified_project = deepcopy(projects[0])
266267
modified_project["name"] = "some other name"
267268
modified_project["description"] = "John Raynor killed Kerrigan"
268-
modified_project["workbench"]["ReNamed"] = modified_project["workbench"].pop(
269+
270+
new_node_id = str(uuid4())
271+
modified_project["workbench"][new_node_id] = modified_project["workbench"].pop(
269272
list(modified_project["workbench"].keys())[0]
270273
)
271-
modified_project["workbench"]["ReNamed"]["position"]["x"] = 0
274+
modified_project["workbench"][new_node_id]["position"]["x"] = 0
272275
# share with some group
273276
modified_project["accessRights"].update(
274277
{str(standard_groups[0]["gid"]): {"read": True, "write": True, "delete": False}}

0 commit comments

Comments
 (0)