Python Bytes

#229 Has one of your dependencies died?

Informações:

Sinopsis

Watch the live stream: Watch on YouTube About the show Sponsored by us! Support our work through: Our courses at Talk Python Training pytest book Patreon Supporters Special guests: Gwendolyn Faraday Gwendolyn’s YouTube Brian #1: Coverage.py (5.6b1) and third-party code Problems If you put your virtual environment in the same directory as your code, and try to run coverage, it’s tricky to get coverage to not attempt to cover everything in your venv also. Or even just running coverage run -m pytest with no --source specified, it just kinda reports on everything, even stuff in site-packages, not just your code. Solution pip install coverage==5.6b1 As of 5.6b1, coverage knows where third party code is and doesn’t measure it. Super awesome Also, it’s still beta. Net wants help testing it out and making sure it works right. I’m curious if it still works right with pytest plugins and such, so I’ll be testing a bunch of stuff to make sure it still makes sense. Michael #2: So you want your own P