Skip to content

[Feature] Implement Comprehensive Unit Testing using Pytest #1674

Description

@knoxiboy

Description
The tests/ directory exists, but many mini-projects lack proper test coverage. A robust project needs automated tests to ensure scripts don't break as new features are added.

Implementation

  1. Add pytest to requirements.txt.
  2. Write unit tests for core logical components of the scripts in the math/ and utilities/ folders (e.g., testing the expression evaluator, or string manipulation utilities).
  3. Use unittest.mock to mock network calls or file I/O operations.
  4. Configure a coverage tool (pytest-cov) to generate a test coverage report, aiming for >80% on tested modules.

Level: Critical
Affected Files: tests/, requirements.txt

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