You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dask uses a couple assert_eq helpers for easily testing the equality of the result of a computation (a dask.array or dask.dataframe say) to the expected value (np.array, pd.DataFrame). It'd be nice to have some tests for these helpers to ensure they're functioning properly
hey there, i'd like to help with this but im unsure how much work is already done since the time the issue was opened. I could use some help with what stuff I could contribute, I think the dask.arrays.test.test_testing module could still be expanded as mentioned in #2681?
I'd like to work on adding tests for the assert_eq and related test helpers!
My plan:
Write unit tests for dask.array.utils.assert_eq covering edge cases: shape mismatch, dtype mismatch, NaN equality, and scalar vs array comparisons
Write unit tests for dask.dataframe.utils.assert_eq covering index equality, column ordering, and dtype handling
Place tests in dask/tests/test_testing_utils.py or similar
This would help ensure the test helpers themselves are reliable. Would these tests live in dask/array/tests/ and dask/dataframe/tests/ or in a shared dask/tests/ folder?
Activity
[-]Add a tests for our tests[/-][+]Add a tests for our tests helpers[/+]ryankarlos commentedon Sep 30, 2019
@TomAugspurger Does this issue still require a PR, if so Im happy to work on it ?
TomAugspurger commentedon Oct 1, 2019
ryankarlos commentedon Oct 3, 2019
Ok will have a look and submit a PR
exitflynn commentedon Apr 28, 2024
hey there, i'd like to help with this but im unsure how much work is already done since the time the issue was opened. I could use some help with what stuff I could contribute, I think the
dask.arrays.test.test_testingmodule could still be expanded as mentioned in #2681?Quantum0uasar commentedon May 21, 2026
I'd like to work on adding tests for the
assert_eqand related test helpers!My plan:
dask.array.utils.assert_eqcovering edge cases: shape mismatch, dtype mismatch, NaN equality, and scalar vs array comparisonsdask.dataframe.utils.assert_eqcovering index equality, column ordering, and dtype handlingdask/tests/test_testing_utils.pyor similarThis would help ensure the test helpers themselves are reliable. Would these tests live in
dask/array/tests/anddask/dataframe/tests/or in a shareddask/tests/folder?