Improve tests for the spice level 2 reader

Open
#206 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by reviewing the spice reader and the related issues 196 and 202 to understand the bugs being covered. Design a way to generate files from each case's header or metadata with random data, then add tests demonstrating that the reader handles those cases without downloading large files.

Written by the indexing model from the issue text.

Description

Provide a general description of the issue or problem.

We recently closed some bugs with the spice reader in sunraster.

https://github.com/sunpy/sunraster/issues/196 and https://github.com/sunpy/sunraster/issues/202

Issue is, we don't have any tests for these cases, partly due to the size of the files, downloading them for a test would take too long and we can not add them to the repository.

We would need a way to create these files based on nothing but the header/metadata for each file and using random data to ensure the reader works.

Dominant language
Python
Stars
21
Forks
25
Avg merge
15h 30m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

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 sunpy/sunraster

All issues in sunpy/sunraster

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.