Changeset - 965aeabde95e
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 years ago 2022-02-22 22:58:53
ben@sturm.com.au
reconcile: Update tests with renamed module.
1 file changed with 11 insertions and 5 deletions:
0 comments (0 inline, 0 general)
tests/test_reconcile.py
Show inline comments
...
 
@@ -6,3 +6,3 @@ import textwrap
 

	
 
from conservancy_beancount.reconcile.prototype_amex_reconciler import (
 
from conservancy_beancount.reconcile.statement_reconciler import (
 
    match_statement_and_books,
...
 
@@ -17,2 +17,6 @@ from conservancy_beancount.reconcile.prototype_amex_reconciler import (
 

	
 
# These data structures represent individual transactions as taken from the
 
# statement ("S") or the books ("B").
 

	
 
# Statement transaction examples.
 
S1 = {
...
 
@@ -39,2 +43,3 @@ S3 = {
 

	
 
# Books transaction examples.
 
B1 = {
...
 
@@ -117,2 +122,7 @@ def test_one_exact_match():
 
    assert match_statement_and_books(statement, books) == [
 
        # Match, match, notes.
 
        #
 
        # The matches are a list so we can implement subset-sum matching where
 
        # multiple books transactions may match to a single statement
 
        # transaction.
 
        ([S1], [B1], []),
...
 
@@ -182,4 +192,2 @@ def test_payee_mismatch_not_ok_when_multiple_that_amount_and_date():
 

	
 
# def test_subset_sum_with_same_date_and_payee():
 

	
 
def test_remove_payee_junk():
...
 
@@ -193,3 +201,2 @@ def test_date_proximity():
 

	
 

	
 
def test_remove_duplicate_words():
...
 
@@ -242,3 +249,2 @@ def test_totals():
 

	
 

	
 
def test_payee_not_considered_if_check_id_present():
0 comments (0 inline, 0 general)