Skip to content

Commit efef775

Browse files
committed
fix tests
1 parent 29dbbaa commit efef775

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

tests/api/unit_tests/test_unit_string_array.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,6 @@ def test_size(self, mock_string_array, mock_object, size):
4949
mock_object.Size = size
5050
assert mock_string_array.size == size
5151

52-
@pytest.mark.parametrize(
53-
"size, values",
54-
[(3, ["hello", "world", "test"]), (2, ["foo", "bar"]), (1, ["single"]), (0, [])],
55-
)
56-
# pylint: disable=R0801
57-
def test_to_list(self, mock_string_array, mock_object, size, values):
58-
"""Test the to_list method of the StringArray class."""
59-
mock_object.Size = size
60-
mock_object.Val.side_effect = lambda i: values[i] if i < len(values) else ""
61-
62-
result = mock_string_array.to_list()
63-
64-
assert result == values
65-
assert len(result) == size
66-
if size > 0:
67-
assert mock_object.Val.call_count == size
68-
for i in range(size):
69-
mock_object.Val.assert_any_call(i)
70-
7152
@pytest.mark.parametrize(
7253
"values",
7354
[

0 commit comments

Comments
 (0)