xcdat icon indicating copy to clipboard operation
xcdat copied to clipboard

Refactor tests to use floating points for data (not `np.ones` or `np.zeros`)

Open tomvothecoder opened this issue 2 years ago • 4 comments

There are some tests (e.g., TestDepartures) that use np.ones or np.zeros, so the output of these operations won't produce outputs the discern correctness of behavior.

Instead, we should have tests run with between 3-5 input floating point values when performing operations such as averaging so that we can reliably test APIs.

https://github.com/xCDAT/xcdat/blob/b2be983598e04a63e6ca4674e10ccdc006251f72/tests/test_temporal.py#L1414-L1428

tomvothecoder avatar Jun 13 '22 15:06 tomvothecoder