Skip to content
Back to skills

Testing Document Generation

ASecurity

Sub-skill of office-docs: Testing Document Generation.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
testingpythongotesting

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill testing-document-generation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing Document Generation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing Document Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-testing-document-generation/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-testing-document-generation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: office-docs-testing-document-generation
description: 'Sub-skill of office-docs: Testing Document Generation.'
version: 1.0.0
category: data
type: reference
scripts_exempt: true
---

# Testing Document Generation

## Testing Document Generation


```python
import pytest
from docx import Document

def test_report_generation():
    """Test report document structure."""
    generate_report(sample_data, 'test_output.docx')

    doc = Document('test_output.docx')

    # Verify structure
    assert len(doc.paragraphs) > 0
    assert doc.paragraphs[0].text == 'Monthly Report'

    # Verify tables
    assert len(doc.tables) == 1
    assert len(doc.tables[0].rows) == 4

def test_template_rendering():
    """Test template variable substitution."""
    context = {'name': 'Test Corp', 'amount': '$1000'}

    doc = DocxTemplate('template.docx')
    doc.render(context)
    doc.save('output.docx')

*See sub-skills for full details.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.