Skip to content

Add unit tests for AudioChunker class in pickaxe module #23

@dennisthemenacing

Description

@dennisthemenacing

Problem\nThe class in has no dedicated test file. It handles YAML config loading, chunk validation, and audio processing logic that should be tested independently of integration tests.\n\n## Scope\n\n1. Create with tests for .\n2. Cover these cases:\n - with valid YAML, missing file, and invalid YAML structure.\n - with valid chunks, negative start times, end <= start, end exceeds audio duration, and duplicate start times.\n - with valid inputs and a file (use ).\n - The convenience function.\n3. Do not add integration tests — keep scope to unit-level coverage.\n\n## Acceptance\n\n- ============================= test session starts ==============================

platform linux -- Python 3.12.1, pytest-9.0.2, pluggy-1.6.0
rootdir: /home/workspace
collected 0 items

============================ no tests ran in 0.00s ============================= passes.\n- All error paths raise the expected exceptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions