Skip to content

Commit b602c0b

Browse files
integration tests
1 parent e487bcd commit b602c0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/integration/test_headers_and_subtotals.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,6 +2980,12 @@ def test_it_computes_diff_for_cat_x_cat_date_with_subdiffs_on_both(self):
29802980
nan_ok=True,
29812981
rel=1e-4,
29822982
)
2983+
assert slice_.columns_scale_mean == pytest.approx(
2984+
np.array(
2985+
[np.nan, 2.26559356, 2.43811395, 2.08453608, 1.9968254, 1.81967213]
2986+
),
2987+
nan_ok=True,
2988+
)
29832989

29842990
def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_both(self):
29852991
slice_ = Cube(
@@ -3083,6 +3089,10 @@ def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_both(self):
30833089
),
30843090
nan_ok=True,
30853091
)
3092+
assert slice_.rows_scale_mean == pytest.approx(
3093+
np.array([np.nan, 1.625, 1.4675835, 1.78818737, 1.68138801, 1.46994536]),
3094+
nan_ok=True,
3095+
)
30863096

30873097
def test_it_computes_diff_for_cat_date_x_cat_with_subdiffs_on_rows(self):
30883098
insertions = [

0 commit comments

Comments
 (0)