Changeset - a1ec25a33de4
[Not reviewed]
0 1 0
Brett Smith - 5 years ago 2020-03-05 17:23:52
brettcsmith@brettcsmith.org
expenseAllocation: Test typos as invalid values.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
tests/test_meta_expenseAllocation.py
Show inline comments
...
 
@@ -26,12 +26,15 @@ VALID_VALUES = {
 
    'fundraising': 'fundraising',
 
    'admin': 'administration',
 
}
 

	
 
INVALID_VALUES = {
 
    'invalid',
 
    'porgram',
 
    'adimn',
 
    'fundrasing',
 
    '',
 
}
 

	
 
@pytest.mark.parametrize('src_value,set_value', VALID_VALUES.items())
 
def test_valid_values_on_postings(src_value, set_value):
 
    txn = testutil.Transaction(postings=[
0 comments (0 inline, 0 general)