I use pytest for testing my Python project. What I want to do is to add to my test suite a function to check whether my code is formatted in "Black" or not. When I press the command "pytest --black" my whole project is tested as I want to. How can I add this function in my tests suite and check the same thing when I run the "python setup.py pytest" command?
Aucun commentaire:
Enregistrer un commentaire