Changeset - 5c6d9d6f69e3
[Not reviewed]
0 2 0
Brett Smith - 3 years ago 2021-01-18 20:49:39
brettcsmith@brettcsmith.org
tax_implication: Bugfix "Corp" abbreviation in values.
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/plugin/meta_tax_implication.py
Show inline comments
...
 
@@ -33,3 +33,3 @@ def _make_aliases(s: str, stdname: Optional[str]=None) -> Iterator[Tuple[str, st
 
    if s.endswith('-Corporation'):
 
        yield from _make_aliases(f's[:-12]-Corp', stdname)
 
        yield from _make_aliases(f'{s[:-12]}-Corp', stdname)
 

	
tests/test_meta_tax_implication.py
Show inline comments
...
 
@@ -22,2 +22,3 @@ VALID_VALUES = {
 
    'Foreign-Corporation': 'Foreign-Corporation',
 
    'foreign-corp': 'Foreign-Corporation',
 
    'Foreign-Grantee': 'Foreign-Grantee',
...
 
@@ -31,2 +32,3 @@ VALID_VALUES = {
 
    'USA-Corporation': 'USA-Corporation',
 
    'us-corp': 'USA-Corporation',
 
    'USA-Grantee': 'USA-Grantee',
0 comments (0 inline, 0 general)