Skip to content

Commit

Permalink
integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Dec 3, 2024
1 parent e487bcd commit b602c0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_headers_and_subtotals.py
Original file line number Diff line number Diff line change
Expand Up @@ -2980,6 +2980,12 @@ def test_it_computes_diff_for_cat_x_cat_date_with_subdiffs_on_both(self):
nan_ok=True,
rel=1e-4,
)
assert slice_.columns_scale_mean == pytest.approx(
np.array(
[np.nan, 2.26559356, 2.43811395, 2.08453608, 1.9968254, 1.81967213]
),
nan_ok=True,
)

def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_both(self):
slice_ = Cube(
Expand Down Expand Up @@ -3083,6 +3089,10 @@ def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_both(self):
),
nan_ok=True,
)
assert slice_.rows_scale_mean == pytest.approx(
np.array([np.nan, 1.625, 1.4675835, 1.78818737, 1.68138801, 1.46994536]),
nan_ok=True,
)

def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_rows(self):
insertions = [
Expand Down

0 comments on commit b602c0b

Please sign in to comment.