Skip to content

Python Wizard: Acceptance Test Coverage #3

@AccessiT3ch

Description

@AccessiT3ch

Linked to Epic

Overview

Executive Scripter: Build comprehensive acceptance test suite for the Python project template wizard. Ensures happy path, error cases, and integration with init repo discovery are all covered.

Acceptance Criteria

  1. Test suite covers:
    • Happy path: Valid project name → generates scaffold → uv sync succeeds
    • Error cases:
      • Invalid project name (reserved keyword, non-ASCII characters)
      • Missing uv in environment
      • Permission denied on output directory
    • Integration: Generated scaffold passes downstream workflows
  2. Code coverage: ≥80% (measured via pytest --cov)
  3. All tests pass on main branch CI (GitHub Actions workflow green)
  4. Test documentation:
    • Docstrings for each test class/function
    • README section on running tests locally
  5. CI integration: Tests run on every push + PR
  6. Performance: Full test suite completes in <30 seconds

Test Framework

  • Tool: pytest
  • Mocking: unittest.mock for file I/O, subprocess calls
  • CI: GitHub Actions (inherited from repo template)

Effort

~10–15 hours (includes test infrastructure setup)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions