From 99f97d3f58498f71324f2b52716d53de01761137 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Thu, 5 Mar 2020 12:23:03 -0500 Subject: [PATCH] expenseAllocation: Accept 'admin' shorthand for 'administration'. --- conservancy_beancount/plugin/meta_expense_allocation.py | 2 ++ tests/test_meta_expenseAllocation.py | 1 + 2 files changed, 3 insertions(+) diff --git a/conservancy_beancount/plugin/meta_expense_allocation.py b/conservancy_beancount/plugin/meta_expense_allocation.py index 37e92fc..a81a960 100644 --- a/conservancy_beancount/plugin/meta_expense_allocation.py +++ b/conservancy_beancount/plugin/meta_expense_allocation.py @@ -23,6 +23,8 @@ class ExpenseAllocations(enum.Enum): fundraising = 'fundraising' program = 'program' + admin = administration + class MetaExpenseAllocation(core.PostingChecker): ACCOUNTS = ('Expenses:',) diff --git a/tests/test_meta_expenseAllocation.py b/tests/test_meta_expenseAllocation.py index 2f56438..9d9d56f 100644 --- a/tests/test_meta_expenseAllocation.py +++ b/tests/test_meta_expenseAllocation.py @@ -24,6 +24,7 @@ VALID_VALUES = { 'program': 'program', 'administration': 'administration', 'fundraising': 'fundraising', + 'admin': 'administration', } INVALID_VALUES = {