Skip to content

v1.6.4 - Combinatoric testing and public test helpers!

Compare
Choose a tag to compare
@sneakers-the-rat sneakers-the-rat released this 11 Oct 09:33
· 21 commits to main since this release
66ab444

PR: #31

We have rewritten our testing system for more rigorous tests,
where before we were limited to only testing dtype or shape cases one at a time,
now we can test all possible combinations together!

This allows us to have better guarantees for behavior that all interfaces
should support, validating it against all possible dtypes and shapes.

We also exposed all the helpers and array testing classes for downstream development
so that it would be easier to test and validate any 3rd-party interfaces
that haven't made their way into mainline numpydantic yet -
see the numpydantic.testing module.

See the testing documentation for more details.

Bugfix

  • Previously, numpy and dask arrays with a model dtype would fail json roundtripping
    because they wouldn't be correctly cast back to the model type. Now they are.
  • Zarr would not dump the dtype of an array when it roundtripped to json,
    causing every array to be interpreted as a random integer or float type.
    dtype is now dumped and used when deserializing.