Skip to content

Commit

Permalink
test: add test to reach full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroMiola committed Oct 21, 2024
1 parent d0707ac commit d48067d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import narwhals.stable.v1 as nw
from tests.utils import PANDAS_VERSION
from tests.utils import get_module_version_as_tuple


def test_maybe_align_index_pandas() -> None:
Expand Down Expand Up @@ -131,3 +132,8 @@ def test_maybe_convert_dtypes_polars() -> None:
df = nw.from_native(pl.DataFrame({"a": [1.1, np.nan]}))
result = nw.maybe_convert_dtypes(df)
assert result is df


def test_get_trivial_version_with_uninstalled_module() -> None:
result = get_module_version_as_tuple("non_existent_module")
assert result == (0, 0, 0)

0 comments on commit d48067d

Please sign in to comment.