Skip to content

Commit

Permalink
حفظ العمل
Browse files Browse the repository at this point in the history
  • Loading branch information
vzool committed Jul 11, 2024
1 parent 8ea6caa commit d70b058
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions zakat/zakat_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2256,19 +2256,25 @@ def test(self, debug: bool = False) -> bool:
suite.append(cp)
if debug:
print('suite', len(suite))
# vault = self._vault.copy()
for case in suite:
# self._vault = vault.copy()
if debug:
print('case', case)
result = self.check_payment_parts(case)
if debug:
print('check_payment_parts', result, f'exceed: {exceed}')
assert result == 0

report = self.check(2.17, None, debug)
(valid, brief, plan) = report
if debug:
print('valid', valid)
assert self.zakat(report, parts=suite, debug=debug)
report = self.check(2.17, None, debug)
(valid, brief, plan) = report
if debug:
print('valid', valid)
zakat_result = self.zakat(report, parts=case, debug=debug)
if debug:
print('zakat-result', zakat_result)
assert valid == zakat_result

assert self.save(path + '.pickle')
assert self.export_json(path + '.json')

Expand Down

0 comments on commit d70b058

Please sign in to comment.