From 4a28596db267d3a868fa25be2c1c3519a39338b9 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Mon, 15 Jun 2020 18:08:18 -0400 Subject: [PATCH] data: bank-statement and tax-statement are link metadata. Not including them earlier was an oversight. --- conservancy_beancount/data.py | 2 ++ tests/test_meta_repo_links.py | 2 ++ tests/test_meta_rt_links.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/conservancy_beancount/data.py b/conservancy_beancount/data.py index f6fe716..2de4fd7 100644 --- a/conservancy_beancount/data.py +++ b/conservancy_beancount/data.py @@ -56,6 +56,7 @@ DecimalCompat = Union[decimal.Decimal, int] LINK_METADATA = frozenset([ 'approval', + 'bank-statement', 'check', 'contract', 'invoice', @@ -63,6 +64,7 @@ LINK_METADATA = frozenset([ 'receipt', 'rt-id', 'statement', + 'tax-statement', ]) class Account(str): diff --git a/tests/test_meta_repo_links.py b/tests/test_meta_repo_links.py index 5c0b005..68c2c2b 100644 --- a/tests/test_meta_repo_links.py +++ b/tests/test_meta_repo_links.py @@ -27,12 +27,14 @@ from conservancy_beancount.plugin import meta_repo_links METADATA_KEYS = [ 'approval', + 'bank-statement', 'check', 'contract', 'invoice', 'purchase-order', 'receipt', 'statement', + 'tax-statement', ] GOOD_LINKS = [Path(s) for s in [ diff --git a/tests/test_meta_rt_links.py b/tests/test_meta_rt_links.py index fa6f2bf..7c2161b 100644 --- a/tests/test_meta_rt_links.py +++ b/tests/test_meta_rt_links.py @@ -25,6 +25,7 @@ from conservancy_beancount.plugin import meta_rt_links METADATA_KEYS = [ 'approval', + 'bank-statement', 'check', 'contract', 'invoice', @@ -32,6 +33,7 @@ METADATA_KEYS = [ 'receipt', 'rt-id', 'statement', + 'tax-statement', ] GOOD_LINKS = [