Without unitest.main(), the tests wouldn’t run.
unitest.main()
Please consider explaining to the student why the if statement is necessary, and why it checks if the name is __main__. 9 years ago I didn’t understand this, I just found out about modules, and I’m very excited to share this.
if
__main__
Thank you.
unitest.main() is not needed if you’re running pytest.
pytest
Thank you so much. I were doing what I used to do on exercism 9 years ago. pytest is awesome. It’s like riding a spaceship.
Should I close this? Does checking your response as the Solution automatically close this? Should I do anything else?
Selecting a response as a solution marks the topic as solved. Nothing further is needed. Thanks for checking!