DEV Community

Cover image for Advanced MX2 UT
Doron Chapnitsky
Doron Chapnitsky

Posted on

Advanced MX2 UT

Hi there,

After my last assignment, which is to create a CI github workflow, I started to work on my latest assignment. My latest assignment is to add a more complex and advanced UT to the pymx2 repository via this PR.

Our last session with Gabor, we learned about PyTest and all of it's functionalities including handling exceptions.

I like python in general since it is very simple to understand and to implement. I have some experience with UT in my current job position, so it was pretty easy and cool :)

I added a UT regarding the MX2 stop bits (that can only be 1 or 2 integers). So I messed it up with some different object types, including None of course. I had a very fun time doing this. To check that the UT are OK I run the command:
python -m unittest

Thank you and stay tuned for the next cool assignment!
@szabgab

Top comments (0)