Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jun 27, 2023
1 parent 585f125 commit 36e106b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tests/integration/test_duckDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ def test_auto_commit_mode_off(ip_with_duckDB, caplog):
assert any("weather" == table[0] for table in tables_out)


def test_autopandas_with_multiple_statements(ip_with_duckDB):
ip_with_duckDB.run_cell("%config SqlMagic.autopandas=True")
ip_with_duckDB.run_cell("%sql CREATE TABLE weather (city VARCHAR,);")
out = ip_with_duckDB.run_cell("%sql SELECT * FROM weather; SELECT * FROM weather;")
def test_autopandas_with_multiple_statements(ip_empty):
ip_empty.run_cell("%sql duckdb://")
# ip_empty.run_cell("%config SqlMagic.autopandas=True")
ip_empty.run_cell("%sql CREATE TABLE weather (city VARCHAR,);")
out = ip_empty.run_cell("%sql SELECT * FROM weather; SELECT * FROM weather;")

assert out.error_in_exec is None

0 comments on commit 36e106b

Please sign in to comment.