Skip to content

Commit

Permalink
fix shared test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 24, 2024
1 parent 076266c commit 784fd0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/shared/tests/test_state_and_loan_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 784fd0a

Please sign in to comment.