diff --git a/apps/shared/tests/test_state_and_loan_entity.py b/apps/shared/tests/test_state_and_loan_entity.py index e20845f8..585db426 100644 --- a/apps/shared/tests/test_state_and_loan_entity.py +++ b/apps/shared/tests/test_state_and_loan_entity.py @@ -88,6 +88,13 @@ def compute_debt_to_be_liquidated(self, *args, **kwargs): """Compute mock debt to be liquidated.""" return Decimal("100") + def has_debt(self) -> bool: + """ + Check if the loan entity has any debt. + :return: bool + """ + return any(self.debt.values()) + class MockState(State): """