Skip to content

PrefixListTests' literal_prefix() leaves escaped hyphens in, so its emitted-names set is wrong #280

Description

@realmarcin

From the round-3 review of #244.

Where: tests/test_fleet_page.py PrefixListTests.setUp, literal_prefix().

The helper only turns \. back into .. #244 adds pdb\-ccd, RHEA\-COMP, CAS\-RN and UniProtKB\-KW to P. For those four, the set the test calls "what the census can actually emit" holds the backslashed strings, and norm, keyed by the unescaped names, is never applied to them. The invariant tests pass today only because none of those four names is a heatmap column.

Fix: unescape every regex escape. Add an assertion that every alternative in P maps through norm to a name the census emits.

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