Hi, I have a set of pytest unit tests, one of the functions include Google Cloud client library. If I run the unit tests as $pytest, they run just fine, however, I run it as coverage run -m pytest, it fails with the following error:
$ coverage run -m pytest
ImportError while loading conftest '/Users/myuser/my_app/tests/conftest.py'.
tests/conftest.py:3: in <module>
from app.main import app
app/main.py:2: in <module>
from app.api import notification
app/api/notification.py:4: in <module>
from app.api.k8s_util import K8sUtil
app/api/k8s_util.py:4: in <module>
from google.cloud import container_v1
E ModuleNotFoundError: No module named 'google.cloud'
@nedbat any ideas? I’m sure my configuration is missing something