Beispiel #1
0
def export_nodenet_rpc(nodenet_uid):
    return True, runtime.export_nodenet(nodenet_uid)
Beispiel #2
0
def export_nodenet(nodenet_uid):
    response.set_header('Content-type', 'application/json')
    response.set_header('Content-Disposition', 'attachment; filename="nodenet.json"')
    return runtime.export_nodenet(nodenet_uid)
Beispiel #3
0
def export_nodenet_rpc(nodenet_uid):
    """ Return a json dump of the nodenet"""
    return True, runtime.export_nodenet(nodenet_uid)
Beispiel #4
0
def test_export_json_does_not_send_duplicate_links(fixed_nodenet):
    import json
    result = json.loads(micropsi.export_nodenet(fixed_nodenet))
    assert len(result['links']) == 4
Beispiel #5
0
def test_export_json_does_not_send_duplicate_links(fixed_nodenet):
    import json
    result = json.loads(micropsi.export_nodenet(fixed_nodenet))
    assert len(result['links']) == 4