Skip to content

Commit

Permalink
Fix duplicate function names for NDCubeSequence tests.
Browse files Browse the repository at this point in the history
Also add a couple parameterizations to NDCubeSequence slicing test.
  • Loading branch information
DanRyanIrish committed Mar 23, 2020
1 parent 8c8623d commit 5a2d00d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ndcube/tests/test_ndcubesequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,14 @@
(seq[2], NDCube),
(seq[3], NDCube),
(seq[0:1], NDCubeSequence),
(seq[0:1, 0:2], NDCubeSequence),
(seq[0:1, 0], NDCubeSequence),
(seq[1:3], NDCubeSequence),
(seq[0:2], NDCubeSequence),
(seq[slice(0, 2)], NDCubeSequence),
(seq[slice(0, 3)], NDCubeSequence),
])
def test_slice_first_index_sequence(test_input, expected):
def test_slice_first_index_sequence_type(test_input, expected):
assert isinstance(test_input, expected)


Expand All @@ -132,7 +134,7 @@ def test_slice_first_index_sequence(test_input, expected):
(seq[slice(0, 2)], 2 * u.pix),
(seq[slice(0, 3)], 3 * u.pix),
])
def test_slice_first_index_sequence(test_input, expected):
def test_slice_first_index_sequence_dimensions(test_input, expected):
assert test_input.dimensions[0] == expected


Expand Down

0 comments on commit 5a2d00d

Please sign in to comment.