Skip to content

Commit

Permalink
Moved test_empty_select to select_test.py (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
condekind authored Jul 24, 2024
1 parent 4debb9a commit e3c4a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions tests/frame/select_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ def test_select(constructor: Any) -> None:
result = df.select("a")
expected = {"a": [1, 3, 2]}
compare_dicts(result, expected)


def test_empty_select(constructor: Any) -> None:
result = nw.from_native(constructor({"a": [1, 2, 3]}), eager_only=True).select()
assert result.shape == (0, 0)
5 changes: 0 additions & 5 deletions tests/frame/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
data_right = {"c": [6, 12, -1], "d": [0, -4, 2]}


def test_empty_select(constructor: Any) -> None:
result = nw.from_native(constructor({"a": [1, 2, 3]}), eager_only=True).select()
assert result.shape == (0, 0)


def test_std(constructor: Any) -> None:
df = nw.from_native(constructor(data))
result = df.select(
Expand Down

0 comments on commit e3c4a0c

Please sign in to comment.