Skip to content

Commit f4dd90c

Browse files
fix test
1 parent bfe6a31 commit f4dd90c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/web/server/tests/unit/with_dbs/03/test_project_db.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def _assert_added_project(
100100
"creationDate",
101101
"lastChangeDate",
102102
"accessRights", # NOTE: access rights were moved away from the projects table
103+
"workbench",
103104
"trashed",
104105
"trashedBy",
105106
"trashedExplicitly",
@@ -192,8 +193,7 @@ async def insert_project_in_db(
192193
async def _inserter(prj: dict[str, Any], **overrides) -> dict[str, Any]:
193194
# add project without user id -> by default creates a template
194195

195-
workbench = prj.pop("workbench", {})
196-
assert prj.get("workbench", None) == None # nosec
196+
workbench = prj.pop("workbench", None)
197197

198198
project_nodes = None
199199
if workbench:
@@ -224,6 +224,8 @@ async def _inserter(prj: dict[str, Any], **overrides) -> dict[str, Any]:
224224
)
225225

226226
inserted_projects.append(new_project["uuid"])
227+
if workbench:
228+
new_project["workbench"] = workbench
227229
return new_project
228230

229231
yield _inserter

0 commit comments

Comments
 (0)