mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-18 05:21:19 +00:00
14 lines
523 B
Python
14 lines
523 B
Python
import pytest
|
|
import json
|
|
from scripts.workflow import build_protocol_graph, draw_protocol_graph, draw_protocol_graph_with_ports
|
|
|
|
|
|
@pytest.mark.parametrize("protocol_name", [
|
|
"example_bio",
|
|
# "bioyond_materials_liquidhandling_1",
|
|
])
|
|
def test_build_protocol_graph(protocol_name):
|
|
d = json.load(open(f"{protocol_name}.json"))
|
|
graph = build_protocol_graph(labware_info=d["reagent"], protocol_steps=d["workflow"], workstation_name="PRCXi")
|
|
draw_protocol_graph_with_ports(graph, "graph.png")
|
|
print(graph) |