diff --git a/test/test_configuration/test_path_config.py b/test/test_configuration/test_path_config.py
index 27b2d32db7180275fc5256636f150b53bd3d189b..b27eae67a82432de08b9a1de77233121f5c7e2e4 100644
--- a/test/test_configuration/test_path_config.py
+++ b/test/test_configuration/test_path_config.py
@@ -30,7 +30,7 @@ class TestPrepareHost:
         assert "unknown host 'NotExistingHostName'" in e.value.args[0]
 
     @mock.patch("getpass.getuser", return_value="zombie21")
-    @mock.patch("src.configuration.check_path_and_create", side_effect=PermissionError)
+    @mock.patch("src.configuration.path_config.check_path_and_create", side_effect=PermissionError)
     @mock.patch("os.path.exists", return_value=False)
     def test_error_handling(self, mock_path_exists, mock_cpath, mock_user):
         # if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node():