Skip to content

Commit 08a81a0

Browse files
committed
tests: transposed axes
1 parent 5658eed commit 08a81a0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ckanext/dc_serve/tests/test_serve.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,10 @@ def test_api_dcserv_tables_with_nan(enqueue_job_mock, app, tmp_path):
661661
assert "nan-array" in jres["result"]
662662
names, data = jres["result"]["nan-array"]
663663
assert "peter" in names
664-
# the rec-array thing introduces the empty axis 1
665-
assert data[1][0][2] is None
664+
# Note that
665+
# 1. the rec-array thing introduces the empty axis 1
666+
# 2. the axes are transposed
667+
assert data[2][0][1] is None
666668

667669
# now open the same dataset with dclab
668670
host = f"http://{app.config['CKAN_HOST']}:{app.config['CKAN_PORT']}"

0 commit comments

Comments
 (0)