Skip to content

Add a tests for our tests helpers #2682

Closed

Description

@TomAugspurger

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

See https://github.com/dask/dask/pull/2681/files#diff-20d741e3b309789af8da0fbc2663f964 for an example of the kinds of tests we would be good to have.

Activity

  1. changed the title [-]Add a tests for our tests[/-] [+]Add a tests for our tests helpers[/+] on Sep 14, 2017
  2. added
    good first issue
    on Jul 3, 2018
  3. ryankarlos commented on Sep 30, 2019

    @ryankarlos
    Contributor

    @TomAugspurger Does this issue still require a PR, if so Im happy to work on it ?

  4. TomAugspurger commented on Oct 1, 2019

    @TomAugspurger
    MemberAuthor
  5. ryankarlos commented on Oct 3, 2019

    @ryankarlos
    Contributor

    Ok will have a look and submit a PR

  6. exitflynn commented on Apr 28, 2024

    @exitflynn

    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?

  7. Quantum0uasar commented on May 21, 2026

    @Quantum0uasar

    I'd like to work on adding tests for the assert_eq and related test helpers!

    My plan:

    1. Write unit tests for dask.array.utils.assert_eq covering edge cases: shape mismatch, dtype mismatch, NaN equality, and scalar vs array comparisons
    2. Write unit tests for dask.dataframe.utils.assert_eq covering index equality, column ordering, and dtype handling
    3. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions