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

Function test_one

dask/array/tests/test_stats.py:54–65  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

52 "kind", ["chisquare", "power_divergence", "normaltest", "skewtest", "kurtosistest"]
53)
54def test_one(kind):
55 a = np.random.random(size=30)
56 a_ = da.from_array(a, 3)
57
58 dask_test = getattr(dask.array.stats, kind)
59 scipy_test = getattr(scipy.stats, kind)
60
61 result = dask_test(a_)
62 expected = scipy_test(a)
63
64 assert isinstance(result, Delayed)
65 assert allclose(result.compute(), expected)
66
67
68@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

allcloseFunction · 0.90
randomMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected