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:560–567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

558
559
560def test_to_sql_kwargs():
561 ddf = dd.from_pandas(df, 2)
562 with tmp_db_uri() as uri:
563 ddf.to_sql("test", uri, method="multi")
564 with pytest.raises(
565 TypeError, match="to_sql\\(\\) got an unexpected keyword argument 'unknown'"
566 ):
567 ddf.to_sql("test", uri, unknown=None)
568
569
570def 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