astrofrog / astrofrog/numtraits

Expand unit tests

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
39
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Even though the coverage is 100%, not all possible cases are covered. For example, we need to check what happens if e.g. an Astropy quantity is passed to a pint NumericalProperty. Or what happens if we pass an array with units to a NumericalProperty with no units.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by finding the existing unit tests for NumericalProperty and inspect how Astropy quantities and arrays with units are currently handled. Add coverage for the two example cases and verify that the tests clearly capture the intended behavior for incompatible or missing units.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.