How is vcrpy importing from a parent directory in a test file

22 views Asked by At

In the vcrpy github project, the test file is referring a package assertions in a parent directory. I assume it should have referred it as from ..assertions import .... to refer it correctly. Also, I don't see anywhere it is modifying the PYTHONPATH to make the path of assertions.py added directly to the PYTHONPATH. Not sure how this code is working? What is the magic happening to make it work?

0

There are 0 answers