I am attempting to run tests from a python module using Azure DevOps. I've got a pipeline build set up to build of a yml file and also using classic editor. I'm getting an error that my module name on my imports is not right. When I run this locally, it works just fine.
My Repo structure:
I'm running my test using this command as a batch file:
cd testcases
pytest -v test_msoffice.py
and gives me error:
______________________ ERROR collecting test_msoffice.py ______________________
ImportError while importing test module 'D:\a\1\s\testcases\test_msoffice.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_msoffice.py:7: in <module>
from util import utility_method_class
E ModuleNotFoundError: No module named util
Someone please help me.
