Skip to content

πŸ’‘ [Feature]: Add Pytest Fixtures and Parametrized Tests for RobustnessΒ #969

@knoxiboy

Description

@knoxiboy

❓ Problem Statement

The current testing setup might only include basic assertions. As the project scales, basic tests are not enough to catch edge cases, especially for complex mathematical algorithms or text parsers.

πŸš€ Proposed Enhancement

Expand the Pytest suite by utilizing @pytest.mark.parametrize to run multiple inputs against the functions, and use pytest.fixture to set up mock data for web scraping or file I/O scripts.

πŸ› οΈ Suggested Implementation

  1. Identify scripts with complex logic (e.g., parsers, ciphers).
  2. Write parametrized tests testing boundary conditions (empty strings, large numbers, negative values).
  3. Ensure the CI pipeline enforces 80%+ test coverage.

Additional Notes

  • I am a registered GSSoC 2026 contributor.
  • I would like to implement this feature myself.

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