Skip to content

Navigation Menu

Sign in
Sign up

Add unit tests for EV and PV HPXML parsing #225

Open

Description

Context

The new parse_ev_from_vehicle() and parse_pv() functions in ochre/utils/hpxml.py lack dedicated unit tests. These functions handle multiple input combinations (BEV vs PHEV, different charger levels, missing fields, inverter configurations, etc.) that should be verified.

Suggested Approach

  • Add test cases for parse_ev_from_vehicle(): BEV vs PHEV, Level 1 vs Level 2 charger, missing battery capacity, multiple vehicles
  • Add test cases for parse_pv(): various azimuth/tilt values, missing inverter info, capacity extraction
  • Add test cases for parse_ev_from_mel(): legacy MEL-based EV fallback path

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /