Skip to content

Commit

Permalink
ploomber#892 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallwhiteorg committed Sep 22, 2023
1 parent 0940c6d commit 3058bd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/test_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2042,18 +2042,20 @@ def test_comments_in_duckdb_select_summarize(ip_empty):
).result
assert out.dict() == expected_summarize

expected_select = {"memid": (1, 2, 3, 5, 8)}

out = ip_empty.run_cell(
"""%%sql
/*x*/
SELECT * FROM df
"""
).result
assert out.DataFrame().equals(df)
assert out.dict() == expected_select

out = ip_empty.run_cell(
"""%%sql
/*x*/
FROM df SELECT *
"""
).result
assert out.DataFrame().equals(df)
assert out.dict() == expected_select

0 comments on commit 3058bd1

Please sign in to comment.