Skip to content

Commit

Permalink
Add new line EOF.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Aug 21, 2024
1 parent e7b501f commit da28a1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api_server/services/file_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return self.file_system_ops.walk_directory(directory_path)
2 changes: 1 addition & 1 deletion api_server/utils/file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def walk_directory(directory: str) -> List[FileSystemItem]:
"path": relative_path,
"type": "directory"
})
return file_list
return file_list
2 changes: 1 addition & 1 deletion tests-unit/server/routes/internal_routes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert internal_routes.file_service == mock_file_service_instance
2 changes: 1 addition & 1 deletion tests-unit/server/services/file_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
mock_file_system_ops.walk_directory.assert_called_once_with(f"/path/to/{directory_key}")

0 comments on commit da28a1e

Please sign in to comment.