def test_deserialize(): data = { "rules": [], "applied": [], "dag": {"nodes": [], "edges": []}, "stepsbystage": {}, "bookkeeping": {}, "values": {}, } wflow = YadageWorkflow.fromJSON(data) assert data == wflow.json()
def test_serialize_deserialize(local_helloworld_wflow): wflow = local_helloworld_wflow assert YadageWorkflow.fromJSON(wflow.json()).json() == wflow.json()
def test_deserialize(): data = {'rules': [], 'applied': [], 'dag': {'nodes': [], 'edges': []}, 'stepsbystage': {}, 'bookkeeping': {}, 'values': {}} wflow = YadageWorkflow.fromJSON(data) assert data == wflow.json()