MetOffice / MetOffice/CSET

Add tests to assign_model_colours.py

Open
#1,882 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
33
Forks
19
Avg merge
1d 22h
Merged PRs (30d)
30

Description

### What problem does your feature request solve?

We recently had a nasty bug in assign_model_colours.py (#1846) that could have been caught by unit tests. We currently have none for this file.

### Describe the solution you'd like

We should add tests for this code.

### Describe alternatives you've considered

Live life on the edge?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading assign_model_colours.py and issue #1846 to understand the bug that lacked test coverage. Add unit tests for the file's behavior, then run the new tests to confirm they pass and protect against the reported regression.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.