mardi 8 décembre 2015

I want to port a module from Python 2 to 3, how do I run tests?

I've been writing in Python 3 for a while, I came across this library that I really need: http://ift.tt/21MR5lt

but I want to try to port it to Python 3. But I don't know how one runs the tests in a Python module. I tried python -m unittest discover but it didn't discover any tests. And once I actually do change something to Python 3, how would I test it? Is the testing mechanism the same in Python 3 as in 2?

Aucun commentaire:

Enregistrer un commentaire