X-Git-Url: https://git.jsancho.org/?p=datasette-pytables.git;a=blobdiff_plain;f=tests%2Ffixtures.py;h=e845efe146e6540e2108415943e7840896ab6fae;hp=bbca1186aefebe2c86704801d373a5b5d2aada96;hb=7574220c89f66e62f93aed8fbe12e45e0db27f46;hpb=d411de8cb97045c9b7e51dec6182a89edef2701d diff --git a/tests/fixtures.py b/tests/fixtures.py index bbca118..e845efe 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -1,4 +1,5 @@ from datasette.app import Datasette +import numpy as np import os from tables import * import tempfile @@ -37,6 +38,8 @@ def populate_file(filepath): array2 = h5file.create_array(group1, 'array2', [x for x in range(10000)]) + multiarray = h5file.create_array(group2, 'multi', np.arange(1000).reshape(10, 50, 2)) + for table in (table1, table2): row = table.row