change dashboard test to reflect demo changes to uploads view

This commit is contained in:
jimmoffet
2022-09-09 17:02:48 -07:00
parent 740470f6bd
commit 69abec0bb3
28 changed files with 127 additions and 183 deletions

View File

@@ -419,7 +419,7 @@ def get_monthly_usage_breakdown(year, monthly_usage):
def get_monthly_usage_breakdown_for_letters(monthly_letters):
postage_order = {'first class': 0, 'second class': 1, 'international': 2}
group_key = lambda row: ( # noqa: E731
def group_key(row): return ( # noqa: E731
postage_order[get_monthly_usage_postage_description(row)], row['rate']
)