Skip to content

Commit 8f63631

Browse files
[178390751]: fix wrong test
1 parent e7b865c commit 8f63631

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

src/cr/cube/matrix/assembler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
)
1919
from cr.cube.enums import (
2020
COLLATION_METHOD as CM,
21+
DIMENSION_TYPE as DT,
2122
MARGINAL,
2223
MARGINAL_ORIENTATION as MO,
2324
MEASURE as M,

tests/integration/test_pairwise_significance.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,16 +1122,21 @@ def test_pairwise_sig_for_realistic_example_mr_x_mr(self):
11221122
)
11231123

11241124
def test_pairwise_significance_indices_for_realistic_example_mr_x_mr(self):
1125-
transforms = {"columns_dimension": {"elements": {"1": {"hide": True}}}}
1126-
slice_ = Cube(OL.MR_X_MR_REALISTIC_EXAMPLE, transforms=transforms).partitions[0]
1125+
transforms = {
1126+
"columns_dimension": {
1127+
"elements": {"1": {"hide": True}},
1128+
"pairwise_significance": {"pairwise_indices": {"alpha": [0.05]}},
1129+
}
1130+
}
11271131

1132+
slice_ = Cube(OL.MR_X_MR_REALISTIC_EXAMPLE, transforms=transforms).partitions[0]
11281133
assert slice_.pairwise_indices.tolist() == [
1129-
[(0, 1, 2, 3, 4), (1, 2, 3, 4), (4,), (4,), (1, 2, 4)],
1130-
[(1, 4), (1, 2, 3, 4), (4,), (1, 3, 4), (1, 4)],
1131-
[(4,), (4,), (0, 2, 3, 4), (4,), (0, 2, 4)],
1132-
[(4,), (1, 4), (4,), (0, 1, 3, 4), (1, 4)],
1133-
[(4,), (1, 4), (4,), (1, 4), (0, 1, 2, 4)],
1134-
[(1,), (1,), (), (1,), (1,)],
1134+
[(1, 2, 3, 4), (4,), (4,), (1, 2, 4), ()],
1135+
[(1, 2, 3, 4), (4,), (1, 3, 4), (1, 4), ()],
1136+
[(4,), (0, 2, 3, 4), (4,), (0, 2, 4), ()],
1137+
[(1, 4), (4,), (0, 1, 3, 4), (1, 4), ()],
1138+
[(1, 4), (4,), (1, 4), (0, 1, 2, 4), ()],
1139+
[(1,), (), (1,), (1,), (0, 1, 2, 3)],
11351140
]
11361141

11371142
def test_pairwise_sig_for_mr_x_mr_vs_mr_single_subvar_x_mr(self):

0 commit comments

Comments
 (0)