MCPcopy Create free account
hub / github.com/dask/dask / test_to_sql_kwargs

Function test_to_sql_kwargs

dask/dataframe/io/tests/test_sql.py:555–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553
554
555def test_to_sql_kwargs():
556 ddf = dd.from_pandas(df, 2)
557 with tmp_db_uri() as uri:
558 ddf.to_sql("test", uri, method="multi")
559 with pytest.raises(
560 TypeError, match="to_sql\\(\\) got an unexpected keyword argument 'unknown'"
561 ):
562 ddf.to_sql("test", uri, unknown=None)
563
564
565def test_to_sql_engine_kwargs(caplog):

Callers

nothing calls this directly

Calls 2

tmp_db_uriFunction · 0.85
to_sqlMethod · 0.80

Tested by

no test coverage detected