Budget App Python: Create_Spend_Chart test, it seems to want the business category first

I only have one error with the budget app, the test create spend chart seems to fail because of the formatting. When looking at the expected output, it seems to want the order of the graph to be business, food, entertainment but my graph has the order food, entertainment, business which is the correct order for descending percentage of budget spent. I have put the diff function in but the only problem seems to be the order of the categories. Thanks for any help :slight_smile:

Repl
(https://repl.it/@natalieparent9/boilerplate-budget-app-1#test_module.py)

Bars don’t need to be sorted by the value. Order should follow the order in which categories are passed to the function.

thanks so much! Not sure why I thought that it had to be sorted. I fixed this and it passed :grinning:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.