Skip to content

Commit

Permalink
Merge pull request #687 from hayesla/add_meta_check
Browse files Browse the repository at this point in the history
Make ndcube assert_cubes_equal function test metas are equal.
  • Loading branch information
nabobalis committed Apr 24, 2024
2 parents 64b5f99 + 1ce7504 commit fc52e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ndcube/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def assert_cubes_equal(test_input, expected_cube):
assert test_input.uncertainty.array.shape == expected_cube.uncertainty.array.shape
assert all(test_input.dimensions.value == expected_cube.dimensions.value)
assert test_input.dimensions.unit == expected_cube.dimensions.unit
assert_metas_equal(test_input.meta, expected_cube.meta)
if type(test_input.extra_coords) is not type(expected_cube.extra_coords):
raise AssertionError("NDCube extra_coords not of same type: {0} != {1}".format(
type(test_input.extra_coords), type(expected_cube.extra_coords)))
Expand Down

0 comments on commit fc52e0f

Please sign in to comment.