Use fixtures for test datasets

Open
#235 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by locating the tests that use .copy() on test datasets and inspect how their fixtures are currently defined. Determine whether fixtures can provide isolated datasets without mutation; done means the relevant copies are no longer needed and the tests still pass.

Written by the indexing model from the issue text.

Description

help wanted

I was too lazy to figure this out in the beginning but it might be time now.

We use .copy() in places to avoid mutating the original dataset. I don't know if fixtures lets us get rid of that. If so, great!

Dominant language
Python
Stars
181
Forks
49
Avg merge
43m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xarray-contrib/cf-xarray

All issues in xarray-contrib/cf-xarray

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.