79185298

Date: 2024-11-13 14:21:43
Score: 1
Natty:
Report link

After correcting the import at the begging of the script (by appending my PYTHONPATH), so my module is found by pytest, I faced the issue of: Some test functions worked whereas some other were raising the "ModuleNotFoundError".

The issue was in the @patch("path.to.import.mymodule"): this path was incomplete. It needs the same syntax as the imports in the beggining of the script.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Olga Bogdanova