Skip to content

Commit

Permalink
add unit-test case
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 9, 2024
1 parent 4b686f5 commit 5659d42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apis/python/tests/test_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ def test_sparse_nd_array_basics(
with tiledbsoma.SparseNDArray.open(uri) as snda:
assert snda.shape == arg_shape

if not tiledbsoma._flags.NEW_SHAPE_FEATURE_FLAG_ENABLED:
with tiledbsoma.SparseNDArray.open(uri) as snda:
ok, msg = snda.tiledbsoma_upgrade_shape(arg_shape, check_only=True)
assert ok
assert msg == ""

if tiledbsoma._flags.NEW_SHAPE_FEATURE_FLAG_ENABLED:

# Test resize down
Expand Down

0 comments on commit 5659d42

Please sign in to comment.