From 784fd0a98dd4fef64bddd19364244eecf69a6e1c Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Sun, 24 Nov 2024 18:27:06 +0100 Subject: [PATCH] fix shared test cases --- apps/shared/tests/test_state_and_loan_entity.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): """