import pytest @pytest.mark.parametrize( "provided, expected", [ ("abc", ["abc"]), (tuple("abc"), ["a", "b", "c"]), ({"a": 1, "b": 2}, ["a", "b"]), (1, [1]), ], ) def test_helpers_ensure_list(provided, expected): from sensospot_tools.helpers import ensure_list result = ensure_list(provided) assert result == expected