Skip to content

Commit

Permalink
Fix matching_test fuzzy_match_amount initialization to use decimal.De…
Browse files Browse the repository at this point in the history
…cimal
  • Loading branch information
xentac committed Oct 10, 2022
1 parent a709aba commit f438dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beancount_import/matching_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

import decimal
import os
import unittest

Expand Down Expand Up @@ -50,7 +51,7 @@ def is_cleared(posting):

posting_db = matching.PostingDatabase(
fuzzy_match_days=3,
fuzzy_match_amount=0.01,
fuzzy_match_amount=decimal.Decimal("0.01"),
is_cleared=is_cleared,
metadata_keys=frozenset([matching.CHECK_KEY]),
)
Expand Down

0 comments on commit f438dd8

Please sign in to comment.