Python Unit test module throws "ModuleNotFoundError: No module named 'tests.test_file'"
The issue got solved after placing an empty __init__.py
file in the tests folder.
For a better explanation about why it worked, refer to What is __init__.py for?
Thanks, @aws_apprentice for the help.