Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jul 8, 2024
1 parent 5c196e2 commit 2c46b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/frame/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import pytest

import narwhals.stable.v1 as nw
from narwhals._pandas_like.utils import Implementation
from narwhals.functions import _get_deps_info
from narwhals.functions import _get_sys_info
from narwhals.functions import show_versions
Expand Down Expand Up @@ -172,7 +173,7 @@ def test_cross_join(df_raw: Any) -> None:
def test_cross_join_non_pandas() -> None:
df = nw.from_native(df_pandas).select("a")
# HACK to force testing for a non-pandas codepath
df._dataframe._implementation = "modin"
df._dataframe._implementation = Implementation.MODIN
result = df.join(df, how="cross") # type: ignore[arg-type]
expected = {"a": [1, 1, 1, 3, 3, 3, 2, 2, 2], "a_right": [1, 3, 2, 1, 3, 2, 1, 3, 2]}
compare_dicts(result, expected)
Expand Down

0 comments on commit 2c46b62

Please sign in to comment.