Skip to content

Commit

Permalink
Merge branch 'main' into lgautier-patch-2-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lgautier authored Aug 17, 2024
2 parents f43aa32 + 3c7cd49 commit 20ca4c4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rpy2_arrow/tests_polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,22 @@ def test_converter_py2rpy_dataframe(self, values, dtype, rpotype, cmp):
field = R_SQBRACKET(
R_DOLLAR(r_podataf, 'schema'), 1
)[0]
type_in_library = R_DOLLAR(
R_DOLLAR(
getattr(
rpy2polars.rpack_polars, 'pl'
),
'dtypes'
),
rpotype
)
assert R_EQUAL(
field,
R_DOLLAR(getattr(rpy2polars.rpack_polars, 'pl'), rpotype)
# `r-polars` is a bit inconsistent in the way it declares
# types. Some are R functions while others are non-callable
# objects.
type_in_library() if 'function' in type_in_library.rclass
else type_in_library
)

@pytest.mark.parametrize(
Expand Down

0 comments on commit 20ca4c4

Please sign in to comment.