diff --git a/api_server/services/file_service.py b/api_server/services/file_service.py index 394571084e9..115edccd30b 100644 --- a/api_server/services/file_service.py +++ b/api_server/services/file_service.py @@ -10,4 +10,4 @@ def list_files(self, directory_key: str) -> List[FileSystemItem]: if directory_key not in self.allowed_directories: raise ValueError("Invalid directory key") directory_path: str = self.allowed_directories[directory_key] - return self.file_system_ops.walk_directory(directory_path) \ No newline at end of file + return self.file_system_ops.walk_directory(directory_path) diff --git a/api_server/utils/file_operations.py b/api_server/utils/file_operations.py index ef1bf999e52..32d6e047a5d 100644 --- a/api_server/utils/file_operations.py +++ b/api_server/utils/file_operations.py @@ -39,4 +39,4 @@ def walk_directory(directory: str) -> List[FileSystemItem]: "path": relative_path, "type": "directory" }) - return file_list \ No newline at end of file + return file_list diff --git a/tests-unit/server/routes/internal_routes_test.py b/tests-unit/server/routes/internal_routes_test.py index 2d2b43bd66f..552aba17495 100644 --- a/tests-unit/server/routes/internal_routes_test.py +++ b/tests-unit/server/routes/internal_routes_test.py @@ -112,4 +112,4 @@ async def test_file_service_initialization(): }) # Verify that the file_service attribute of InternalRoutes is set - assert internal_routes.file_service == mock_file_service_instance \ No newline at end of file + assert internal_routes.file_service == mock_file_service_instance diff --git a/tests-unit/server/services/file_service_test.py b/tests-unit/server/services/file_service_test.py index 5650452a32f..37cd18324c4 100644 --- a/tests-unit/server/services/file_service_test.py +++ b/tests-unit/server/services/file_service_test.py @@ -51,4 +51,4 @@ def test_list_files_all_allowed_directories(file_service, mock_file_system_ops, assert len(result) == 1 assert result[0]["name"] == f"file_{directory_key}.txt" - mock_file_system_ops.walk_directory.assert_called_once_with(f"/path/to/{directory_key}") \ No newline at end of file + mock_file_system_ops.walk_directory.assert_called_once_with(f"/path/to/{directory_key}")