Skip to content
Snippets Groups Projects
Commit dee08188 authored by Arin Wongprommoon's avatar Arin Wongprommoon
Browse files

test(aliby): fix non-iterable in pytest parametrize

WHY IS THIS CHANGE NEEDED?:
- https://git.ecdf.ed.ac.uk/swain-lab/aliby/aliby/-/jobs/56757 failed
  because TypeError raised: 'int' object is not iterable

HOW DOES THE CHANGE SOLVE THE PROBLEM?:
- @pytest.mark.parametrize() takes an iterable, e.g. a list -- I forgot
  about it.  fixed it by putting the values in a list.

REFERENCES:
- issue #53
parent a39414d2
Loading
...@@ -14,9 +14,9 @@ sample_da = da.reshape( ...@@ -14,9 +14,9 @@ sample_da = da.reshape(
) )
@pytest.mark.parametrize("sample_da", sample_da) @pytest.mark.parametrize("sample_da", [sample_da])
@pytest.mark.parametrize("dim", 2) @pytest.mark.parametrize("dim", [2])
@pytest.mark.parametrize("n_empty_slices", 4) @pytest.mark.parametrize("n_empty_slices", [4])
def test_pad_array(sample_da, dim, n_empty_slices): def test_pad_array(sample_da, dim, n_empty_slices):
"""Test ImageDummy.pad_array() method""" """Test ImageDummy.pad_array() method"""
# create object # create object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment