def test_describe(): jugfile = os.path.join(_jugdir, 'simple.py') store, space = jug.jug.init(jugfile, 'dict_store') simple_execute() t = space['vals'][0] desc = describe(t) assert len(desc['args']) == len(t.args)
def test_describe(): jugfile = 'jug/tests/jugfiles/simple.py' store, space = jug.jug.init(jugfile, 'dict_store') simple_execute() t = space['vals'][0] desc = describe(t) assert len(desc['args']) == len(t.args)
def test_describe(): jugfile = os.path.join(_jugdir, 'write_with_meta.py') store, space = jug.jug.init(jugfile, 'testing_TO_DELETE.jugdata') simple_execute() x = space['x'] desc = describe(x) import json assert desc == json.load(open('x.meta.json')) import yaml assert desc == yaml.load(open('x.meta.yaml'))
def test_describe(): jugfile = 'jug/tests/jugfiles/write_with_meta.py' store, space = jug.jug.init(jugfile, 'testing_TO_DELETE.jugdata') simple_execute() x = space['x'] desc = describe(x) import json assert desc == json.load(open('x.meta.json')) import yaml assert desc == yaml.load(open('x.meta.yaml'))
def test_describe_load(__remove_files): jugfile = find_test_jugfile('write_with_meta.py') store, space = jug.jug.init(jugfile, 'testing_TO_DELETE.jugdata') simple_execute() x = space['x'] desc = describe(x) import json assert desc == json.load(open('x.meta.json')) import yaml assert desc == yaml.safe_load(open('x.meta.yaml'))