Skip to content

Commit

Permalink
use process node for test
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 13, 2024
1 parent 18397b9 commit 936548d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ workgraph = "aiida_workgraph.cli.cmd_workgraph:workgraph"
"workgraph.while" = "aiida_workgraph.tasks.builtins:While"
"workgraph.if" = "aiida_workgraph.tasks.builtins:If"
"workgraph.select" = "aiida_workgraph.tasks.builtins:Select"
"workgraph.gather" = "aiida_workgraph.tasks.builtins:Gather"
"workgraph.set_context" = "aiida_workgraph.tasks.builtins:SetContext"
"workgraph.get_context" = "aiida_workgraph.tasks.builtins:GetContext"
"workgraph.time_monitor" = "aiida_workgraph.tasks.monitors:TimeMonitor"
Expand Down
1 change: 0 additions & 1 deletion src/aiida_workgraph/engine/workgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ def setup_ctx_workgraph(self, wgdata: t.Dict[str, t.Any]) -> None:
self.ctx._tasks = wgdata["tasks"]
self.ctx._links = wgdata["links"]
self.ctx._connectivity = wgdata["connectivity"]
self.ctx._ctrl_links = wgdata["ctrl_links"]
self.ctx._workgraph = wgdata
self.ctx._error_handlers = wgdata["error_handlers"]

Expand Down
7 changes: 6 additions & 1 deletion src/aiida_workgraph/utils/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ def __init__(
"""
self.process = process
self.restart_process = restart_process
wgdata.setdefault("uuid", "")
wgdata.setdefault("tasks", {})
wgdata.setdefault("links", [])
wgdata.setdefault("ctrl_links", [])
wgdata.setdefault("error_handlers", {})
wgdata.setdefault("context", {})
self.wgdata = wgdata
self.uuid = wgdata["uuid"]
self.name = wgdata["name"]
self.wait_to_link()
self.clean_hanging_links()
Expand Down
6 changes: 0 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,7 @@ def process_node(state="finished", exit_status=0):
inputs={
"wg": {
"name": "test",
"uuid": "",
"tasks": {},
"links": [],
"ctrl_links": [],
"state": "",
"error_handlers": {},
"context": {},
}
}
)
Expand Down

0 comments on commit 936548d

Please sign in to comment.