Import file from parent directory?

I have the following directory structure: application/main.py contains some functions. tests/main.py will contain my tests for these functions but I can’t import the top level main.py. I get the following error: I am attempting to import using the following syntax: What am I doing wrong?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)