Unable to import flask app folder in unittest folder of an repo

import sys
sys.path.append('/path/to/the/required/folder')
import name_of_file

if not an inbuilt package, Python only searches in the current directory when you try to import, thus we have to add this path, so that it looks inside this particular folder as well. After adding that, you can simply do the import.