Issue with Ubuntu Files Permission while runing my project import/export tests [closed]

So whenever I run my project tests on my laptop (ubuntu version 23.10)
the tests fail when they reach the import (creating files or finding a files) tests.

I tried to chmod 777 all the directories and files in the project but still no success.

I tried all the different numbers (chmod 777, 775, 755 …)

PS: The project is placed in the desktop.

anyone can help me with that?