Changeset - 258099264e04
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-03-30 19:16:37
brettcsmith@brettcsmith.org
tests: Improve name spread in test_meta_receipt.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
tests/test_meta_receipt.py
Show inline comments
...
 
@@ -53,15 +53,15 @@ class AccountForTesting(typing.NamedTuple):
 
            key,
 
            type(wrong_value).__name__,
 
        )
 

	
 

	
 
ACCOUNTS = [AccountForTesting._make(t) for t in [
 
    ('Assets:Bank:CheckCard', PostType.BOTH, 'check'),
 
    ('Assets:Cash', PostType.BOTH, None),
 
    ('Assets:Checking', PostType.BOTH, 'check'),
 
    ('Assets:CheckCard', PostType.BOTH, 'check'),
 
    ('Assets:Savings', PostType.BOTH, None),
 
]]
 

	
 
ACCOUNTS_WITH_FALLBACKS = [acct for acct in ACCOUNTS if acct.fallback_meta]
 
ACCOUNTS_WITHOUT_FALLBACKS = [acct for acct in ACCOUNTS if not acct.fallback_meta]
 
KNOWN_FALLBACKS = {acct.fallback_meta for acct in ACCOUNTS_WITH_FALLBACKS}
0 comments (0 inline, 0 general)