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