Skip to content

Commit

Permalink
tests for datasets with units (#3447)
Browse files Browse the repository at this point in the history
* start writing the tests for dataset

* add tests for initializing Datasets

* add tests for aggregation methods / functions

* add tests for the ndarray methods / properties

* add tests for missing value handling methods

* add tests for comparison methods

* add tests for reordering / stacking

the test for to_stacked_array seems a bit brittle

* add tests for indexing methods

* remove the commented out xfail on Dataset.squeeze

* add tests for head, tail and thin

* add tests for the computation methods

* add tests for grouped operations

* add tests for the content manipulation methods

* fix reindex_like to actually expect errors where appropriate

* use DataArray.copy to replicate a DataArray with different data

* add tests for repr / str

* remove the comment about moving the merge tests

* construct a new data array instead of using `copy`

which in combination with `assign_coords` make preserving `MultiIndex`
instances much more complicated.

* update whats-new.rst
  • Loading branch information
keewis authored and max-sixty committed Nov 9, 2019
1 parent 37e5ae7 commit ffc3275
Show file tree
Hide file tree
Showing 2 changed files with 1,740 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Internal Changes
~~~~~~~~~~~~~~~~

- Added integration tests against `pint <https://pint.readthedocs.io/>`_.
(:pull:`3238`) by `Justus Magin <https://github.com/keewis>`_.
(:pull:`3238`, :pull:`3447`) by `Justus Magin <https://github.com/keewis>`_.

.. note::

Expand Down
Loading

0 comments on commit ffc3275

Please sign in to comment.