Skip to content

Fix v4.2.0 pytest expectations for string-normalized Result data #432

Description

@monrog2

Problem

The Pytest workflow for PR #431 fails in Python 2.7 and Python 3.8 after master was merged into v4.2.0-dev. Three assertions expect native numeric values, but Result._stringify_table_rows() intentionally normalizes every table cell to a string (introduced by #392 to keep result sorting and printing stable).

Observed mismatches:

  • Equipment disk usage: 98, 81, and 100 expected; "98", "81", and "100" returned.
  • FX3 switch memory: 16.0 expected; "16.0" returned.

Local reproduction at 58447b4 with Python 3.8.20: 3 failed, 7 passed across the two affected test files.

Expected fix

  • Update affected expectations to strings.
  • Replace the stale integer type assertion with a string assertion.
  • Preserve the existing Result normalization behavior.
  • Verify the focused tests and full pytest suite.

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