Scientific Computing with Python Projects - Budget App

Tell us what’s happening:
It seems that I can get the right solution when I separately test the function of my class, but when using the main() to do the overall test, it reports a lot of falses. It seems that there are some interference between different tests in test.py.

Your code so far
https://replit.com/@yjzhang1/boilerplate-budget-app-1#budget.py

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Challenge: Scientific Computing with Python Projects - Budget App

Link to the challenge:

Usually this means you are polluting the global space or using class variables instead of instance variables.

Thank you very much. Just learnt about class/instance variables and fixed the problem!

1 Like

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