Skip to content

Commit

Permalink
test(duckdb): make a simpler comparison for a zero-argument udf
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 2, 2025
1 parent ff2c7a5 commit cf37dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ibis/backends/duckdb/tests/test_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def test_builtin_scalar(con, func):

def test_builtin_scalar_noargs(con):
@udf.scalar.builtin
def version() -> str: ...
def current_schema() -> str: ...

expr = version()
assert con.execute(expr) == f"v{con.version}"
expr = current_schema()
assert con.execute(expr) == con.current_database

Check warning on line 60 in ibis/backends/duckdb/tests/test_udf.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/duckdb/tests/test_udf.py#L59-L60

Added lines #L59 - L60 were not covered by tests


@udf.agg.builtin
Expand Down

0 comments on commit cf37dd4

Please sign in to comment.