Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Testing Covering Your Bases Review: Python Testing

Pliz help thanks in advance How would I automatically run the unit tests in my script? python script.py

How would I automatically run the unit tests in my script?

python script.py

2 Answers

See the teacher's notes for this video under Running tests/Command line. This is the same video linked in the quiz.

Hi there l did go through the video a couple of times -m unittest wont pass that's why l asked

Strange it passed for me. I just copy pasted -m unittest from your post and it passed again so not sure what is going on.