# -*- coding: utf-8 -*- """Create test Word document""" from docx import Document # Create a new document doc = Document() # Add heading doc.add_heading('Test Document for Office File Handler', 0) # Add paragraphs doc.add_paragraph('This is a test document created to verify the office-file-handler skill functionality.') doc.add_paragraph('The skill supports various operations:') doc.add_heading('Features', level=1) # Add bullet points doc.add_paragraph('• Read Word documents', style='List Bullet') doc.add_paragraph('• Extract text content', style='List Bullet') doc.add_paragraph('• Support multiple file formats', style='List Bullet') doc.add_heading('Testing Information', level=2) doc.add_paragraph('Document created for testing purposes.') doc.add_paragraph('Date: 2026-03-05') doc.add_paragraph('Purpose: Verify Python 3.14.2 integration with office-file-handler skill') # Save document output_file = 'test_word_document.docx' doc.save(output_file) print(f"Created {output_file} successfully!")