Forum Discussion

vinipieroni10's avatar
vinipieroni10
New Contributor
3 years ago

"ModuleNotFoundError: No module named" when I generate the xml file

Hello guys,

I did a series of tests using pytest, but when it comes time to generate the tests, it returns: "E ModuleNotFoundError: No module named 'GET_HEADERS'". I am importing GET_HEADERS as if it were a library, since it is a directory that is in another project, which I put the address through the Terminal using "PYTHONPATH=". When I run test_file.py for test_file.py it works, but when it comes time to generate the xml with the command "pytest --junitxml=output/junitxml_report.xml" it gives the error shown above.
Does anyone know how to solve it?

Thanks in advance

 

No RepliesBe the first to reply