def test_generate_index(index_dir): out = index(index_dir) assert out['models'] == [{ 'organism': 'Escherichia coli', 'model_name': 'iJO1366' }] assert out['maps'] == [{ 'organism': 'Escherichia coli', 'map_name': 'iJO1366.central_metabolism' }]
def local_index(cache_dir=get_cache_dir()): return index(cache_dir)
def test_generate_index(index_dir): out = index(index_dir) assert out['models'] == [ { 'organism': 'Escherichia coli', 'model_name': 'iJO1366' } ] assert out['maps'] == [ { 'organism': 'Escherichia coli', 'map_name': 'iJO1366.central_metabolism' } ]