Skip to content

Commit

Permalink
tests: remove eager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-nelson-uiuc committed Jan 5, 2025
1 parent 85110bf commit eda44db
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/spark_like_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import narwhals.stable.v1 as nw
from narwhals.exceptions import ColumnNotFoundError
from tests.utils import ConstructorEager
from tests.utils import assert_equal_data

if TYPE_CHECKING:
Expand Down Expand Up @@ -373,25 +372,6 @@ def test_any_all(pyspark_constructor: Constructor) -> None:
assert_equal_data(result, expected)


def test_any_all_series(constructor_eager: ConstructorEager) -> None:
df = nw.from_native(
constructor_eager(
{
"a": [True, False, True],
"b": [True, True, True],
"c": [False, False, False],
}
),
eager_only=True,
)
result = {"a": [df["a"].all()], "b": [df["b"].all()], "c": [df["c"].all()]}
expected = {"a": [False], "b": [True], "c": [False]}
assert_equal_data(result, expected)
result = {"a": [df["a"].any()], "b": [df["b"].any()], "c": [df["c"].any()]}
expected = {"a": [True], "b": [True], "c": [False]}
assert_equal_data(result, expected)


# copied from tests/expr_and_series/count_test.py
def test_count(pyspark_constructor: Constructor) -> None:
data = {"a": [1, 2, 3], "b": [4, None, 6], "z": [7.0, None, None]}
Expand Down

0 comments on commit eda44db

Please sign in to comment.