Skip to content

Add Unit Tests for shorten_list_repr() and inline_dask_repr() and inline_sparse_repr() in formatting.py #10563

@osukjg

Description

@osukjg

What is your issue?

Hello,
I'm a student currently working on a course assignment that involves contributing to an open-source project. While exploring the Xarray codebase and running coverage tools with pytest, I noticed that the inline_dask_repr() and inline_sparse_repr() functions in xarray/core/formatting.py currently lack unit test coverage.

These functions produce string representations for Dask and sparse arrays, and adding targeted tests would help improve test coverage

Would the maintainers be open to me contributing unit tests for these two functions? If so, I’d be happy to create a pull request and include tests under xarray/tests/test_formatting.py or another location that aligns with your guidelines.

Thanks for your time and for maintaining such a great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions