Skip to content

Commit

Permalink
test(postgres): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jun 30, 2024
1 parent 36005ea commit b381858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ibis/backends/postgres/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ def test_coalesce_all_na_double(con):
def test_numeric_builtins_work(alltypes, df):
expr = alltypes.double_col.fill_null(0)
result = expr.execute()
expected = df.double_col.fillna(0)
expected.name = "Coalesce()"
expected = df.double_col.fillna(0).rename(expr.get_name())
tm.assert_series_equal(result, expected)


Expand Down
3 changes: 1 addition & 2 deletions ibis/backends/risingwave/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ def test_coalesce_all_na_double(con):
def test_numeric_builtins_work(alltypes, df):
expr = alltypes.double_col.fill_null(0)
result = expr.execute()
expected = df.double_col.fillna(0)
expected.name = "Coalesce()"
expected = df.double_col.fillna(0).rename(expr.get_name())
tm.assert_series_equal(result, expected)


Expand Down

0 comments on commit b381858

Please sign in to comment.