It can be time-consuming to run all tests in your project. Wouldn’t it be nice if you can run only the tests related to the unstaged files in Git? That is when pytest-picked comes in handy.
In the code above, only tests in the file test_picked.py
are executed because it is an unstaged file.