Skip to content

Commit 633a06d

Browse files
committed
coverage?
1 parent 38d6d5d commit 633a06d

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

tests/conftest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -431,18 +431,6 @@ def pick(n: int, /) -> Iterator[IntoIterable]:
431431
"""
432432

433433

434-
@pytest.fixture(params=_into_iter(4), scope="session", ids=_ids_into_iter)
435-
def into_iter_4(request: pytest.FixtureRequest) -> IntoIterable:
436-
function: IntoIterable = request.param
437-
return function
438-
439-
440-
@pytest.fixture(params=_into_iter(8), scope="session", ids=_ids_into_iter)
441-
def into_iter_8(request: pytest.FixtureRequest) -> IntoIterable:
442-
function: IntoIterable = request.param
443-
return function
444-
445-
446434
@pytest.fixture(params=_into_iter(16), scope="session", ids=_ids_into_iter)
447435
def into_iter_16(request: pytest.FixtureRequest) -> IntoIterable:
448436
function: IntoIterable = request.param

tests/expr_and_series/is_in_test.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ def test_expr_is_in_empty_list(constructor: Constructor) -> None:
3232
assert_equal_data(result, expected)
3333

3434

35-
def test_expr_is_in_iterable(constructor: Constructor, into_iter_4: IntoIterable) -> None:
36-
df = nw.from_native(constructor(data))
37-
expected = {"a": [False, True, True, False]}
38-
iterable = into_iter_4((4, 2))
39-
expr = nw.col("a").is_in(iterable)
40-
result = df.select(expr)
41-
assert_equal_data(result, expected)
42-
# NOTE: For an `Iterator`, this will fail if we haven't collected it first
43-
repeated = df.select(expr)
44-
assert_equal_data(repeated, expected)
45-
46-
4735
def test_ser_is_in(constructor_eager: ConstructorEager) -> None:
4836
ser = nw.from_native(constructor_eager(data), eager_only=True)["a"]
4937
result = {"a": ser.is_in([4, 5])}
@@ -70,6 +58,22 @@ def test_filter_is_in_with_series(constructor_eager: ConstructorEager) -> None:
7058
assert_equal_data(result, expected)
7159

7260

61+
@pytest.mark.slow
62+
def test_expr_is_in_iterable(
63+
constructor: Constructor, into_iter_16: IntoIterable
64+
) -> None:
65+
df = nw.from_native(constructor(data))
66+
expected = {"a": [False, True, True, False]}
67+
iterable = into_iter_16((4, 2))
68+
expr = nw.col("a").is_in(iterable)
69+
result = df.select(expr)
70+
assert_equal_data(result, expected)
71+
# NOTE: For an `Iterator`, this will fail if we haven't collected it first
72+
repeated = df.select(expr)
73+
assert_equal_data(repeated, expected)
74+
75+
76+
@pytest.mark.slow
7377
def test_ser_is_in_iterable(
7478
constructor_eager: ConstructorEager,
7579
into_iter_16: IntoIterable,

0 commit comments

Comments
 (0)