Skip to content

[Task] Increase Unit Test Coverage for statistics.py (Demographics & Zipcodes)Β #5329

@saiudayagiri

Description

@saiudayagiri

Problem Statement

Problem

The statistics.py module currently has several logic paths that are not covered by unit tests from the codecov report.

Proposed Changes

Add unit tests to esp/program/tests/test_statistics.py

Impact

  • Increases code coverage for the program module.
  • Prevents regressions in the demographics reporting dashboard.
  • Uses SimpleNamespace for lightweight mocking to keep tests fast.

Proposed Solution

  • Add unit tests to esp/program/tests/test_statistics.py
  • Increases code coverage for the program module.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions