Skip to content

Commit

Permalink
[#186653738]: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Dec 11, 2023
1 parent 77e776f commit 9141ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cr/cube/matrix/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ def _base_values(self):
# --- Use "body" reference values for base values
(ref_props, ref_bases) = self._reference_values(0)
return self._calculate_t_stats(
self._proportions[0][0], self._bases[0][0], ref_props, ref_bases
self._proportions[0][0], self._column_bases[0][0], ref_props, ref_bases
)

@lazyproperty
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/matrix/test_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def it_provides_the_bases_to_help(self, second_order_measures_):
second_order_measures_.columns_squared_base.is_defined = False
pairwise_tstat = _PairwiseSigTstats(None, second_order_measures_, None, None)

assert pairwise_tstat._bases == [1, 2]
assert pairwise_tstat._column_bases == [1, 2]

def it_can_calculate_the_t_stat_to_help(self):
pairwise_tstat = _PairwiseSigTstats(None, None, None, None)
Expand Down Expand Up @@ -1039,7 +1039,7 @@ def it_provides_the_subtotal_rows_to_help(

@pytest.fixture
def _bases_prop_(self, request):
return property_mock(request, _PairwiseSigTstats, "_bases")
return property_mock(request, _PairwiseSigTstats, "_column_bases")

@pytest.fixture
def _calculate_t_stats_(self, request):
Expand Down

0 comments on commit 9141ed9

Please sign in to comment.