Python - how do I import a module from a parent folder

I have a test folder and I want to import a module to my test file from my src folder

Try using ../ before the file name. That will go up a level in folder hierarchy. ./ will look in the same directory as the file you’re writing in. Hope this helps I’m not a Python dev but as long as you have the correct path in the import, it should work.