MCPcopy
hub / github.com/ContextLab/hypertools / test_mixed_list

Function test_mixed_list

tests/test_format_data.py:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_mixed_list():
35 mat = np.random.rand(3,20)
36 df = pd.DataFrame(np.random.rand(3,20))
37 text = ['here is some test text', 'and a little more', 'and more']
38 string = 'a string'
39 res = format_data([mat, df, text, string])
40 assert isinstance(res, list)
41 assert all(map(lambda x: isinstance(x, np.ndarray), res))
42
43
44def test_geo():

Callers

nothing calls this directly

Calls 1

format_dataFunction · 0.90

Tested by

no test coverage detected