MCPcopy Index your code
hub / github.com/dask/dask / test_to_sql_engine_kwargs

Function test_to_sql_engine_kwargs

dask/dataframe/io/tests/test_sql.py:570–584  ·  view source on GitHub ↗
(caplog)

Source from the content-addressed store, hash-verified

568
569
570def test_to_sql_engine_kwargs(caplog):
571 ddf = dd.from_pandas(df, 2)
572 with tmp_db_uri() as uri:
573 ddf.to_sql("test", uri, engine_kwargs={"echo": False})
574 logs = "\n".join(r.message for r in caplog.records)
575 assert logs == ""
576 assert_eq(df, read_sql_table("test", uri, "number"))
577
578 with tmp_db_uri() as uri:
579 ddf.to_sql("test", uri, engine_kwargs={"echo": True})
580 logs = "\n".join(r.message for r in caplog.records)
581 assert "CREATE" in logs
582 assert "INSERT" in logs
583
584 assert_eq(df, read_sql_table("test", uri, "number"))

Callers

nothing calls this directly

Calls 5

assert_eqFunction · 0.90
read_sql_tableFunction · 0.90
tmp_db_uriFunction · 0.85
to_sqlMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…