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

Function test_meta

dask/dataframe/io/tests/test_sql.py:298–304  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

296
297
298def test_meta(db):
299 data = read_sql_table(
300 "test", db, index_col="number", meta=dd.from_pandas(df, npartitions=1)
301 ).compute()
302 assert (data.name == df.name).all()
303 assert data.index.name == "number"
304 assert_eq(data, df)
305
306
307def test_meta_no_head_rows(db):

Callers

nothing calls this directly

Calls 4

read_sql_tableFunction · 0.90
assert_eqFunction · 0.90
computeMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected