Changeset - 97a05003f345
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 years ago 2022-03-02 22:36:33
ben@sturm.com.au
reconcile: Fix linter warnings.
1 file changed with 19 insertions and 4 deletions:
0 comments (0 inline, 0 general)
tests/test_reconcile.py
Show inline comments
...
 
@@ -147,3 +147,2 @@ B4C = {
 

	
 

	
 
def test_one_exact_match():
...
 
@@ -162,2 +161,3 @@ def test_one_exact_match():
 

	
 

	
 
def test_multiple_exact_matches():
...
 
@@ -171,2 +171,3 @@ def test_multiple_exact_matches():
 

	
 

	
 
def test_one_mismatch():
...
 
@@ -180,2 +181,3 @@ def test_one_mismatch():
 

	
 

	
 
def test_multiple_mismatches():
...
 
@@ -189,2 +191,3 @@ def test_multiple_mismatches():
 

	
 

	
 
def test_next_day_matches():
...
 
@@ -198,2 +201,3 @@ def test_next_day_matches():
 

	
 

	
 
def test_next_week_matches():
...
 
@@ -207,2 +211,3 @@ def test_next_week_matches():
 

	
 

	
 
def test_incorrect_amount_does_not_match():
...
 
@@ -216,2 +221,3 @@ def test_incorrect_amount_does_not_match():
 

	
 

	
 
def test_payee_mismatch_ok_when_only_one_that_amount_and_date():
...
 
@@ -225,2 +231,3 @@ def test_payee_mismatch_ok_when_only_one_that_amount_and_date():
 

	
 

	
 
def test_payee_mismatch_not_ok_when_multiple_that_amount_and_date():
...
 
@@ -235,2 +242,3 @@ def test_payee_mismatch_not_ok_when_multiple_that_amount_and_date():
 

	
 

	
 
def test_remove_payee_junk():
...
 
@@ -239,2 +247,3 @@ def test_remove_payee_junk():
 

	
 

	
 
def test_date_proximity():
...
 
@@ -244,4 +253,2 @@ def test_date_proximity():
 

	
 
def test_remove_duplicate_words():
 
    assert remove_duplicate_words('Hi Foo Kow FOO') == 'Hi Foo Kow'
 

	
...
 
@@ -250,2 +257,3 @@ def test_remove_duplicate_words():
 

	
 

	
 
def test_payee_matches_when_first_word_matches():
...
 
@@ -254,2 +262,3 @@ def test_payee_matches_when_first_word_matches():
 

	
 

	
 
def test_metadata_for_match(monkeypatch):
...
 
@@ -261,2 +270,3 @@ def test_metadata_for_match(monkeypatch):
 

	
 

	
 
def test_no_metadata_if_no_matches():
...
 
@@ -266,2 +276,3 @@ def test_no_metadata_if_no_matches():
 

	
 

	
 
def test_write_to_books():
...
 
@@ -285,2 +296,3 @@ def test_write_to_books():
 

	
 

	
 
def test_totals():
...
 
@@ -292,2 +304,3 @@ def test_totals():
 

	
 

	
 
def test_payee_not_considered_if_check_id_present():
...
 
@@ -302,2 +315,3 @@ def test_payee_not_considered_if_check_id_present():
 

	
 

	
 
def test_subset_sum_match():
...
 
@@ -311,2 +325,3 @@ def test_subset_sum_match():
 

	
 

	
 
def test_subset_passes_through_all_non_matches():
...
 
@@ -320,3 +335,3 @@ def test_subset_passes_through_all_non_matches():
 
        B2,  # No match
 
        B4A, B4B, B4C, # Match
 
        B4A, B4B, B4C,  # Match
 
        B3_next_day, B3_next_week,  # No match
0 comments (0 inline, 0 general)