Besides the Category class, create a function (outside of the class) called create_spend_chart that takes a list of categories as an argument. It should return a string that is a bar chart.
You have created a class to that effect. The tests are expecting a string returned from a function and are getting an object returned from the class constructor.
Run your create_spend_chart with the same arguments as the test does and print the type of the return value. Printing the return will print the result from the __repr__() method since it’s defined.
Regardless, the spec calls for a function that returns a string.