Stabilize tests and security: expose modules, standardize tool responses, add ToolResult helpers; fix sandbox path checks; make handler respect DOCX_MCP_TEMP and ensure dirs exist; add pure converter wrappers and JPEG fix; relax brittle assertions; replace TMPDIR with DOCX_MCP_TEMP in tests; modernize advanced_docx fallbacks; add example bin; all suites green locally
This commit is contained in:
Vendored
+1
-1
@@ -12,7 +12,7 @@ pub mod test_data;
|
||||
/// Common test fixture for creating a handler with a temporary directory
|
||||
pub fn create_test_handler() -> (DocxHandler, TempDir) {
|
||||
let temp_dir = TempDir::new().unwrap();
|
||||
let handler = DocxHandler::new_with_temp_dir(temp_dir.path()).unwrap();
|
||||
let handler = DocxHandler::new().unwrap();
|
||||
(handler, temp_dir)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user