Skip to content

Check tests for validation #539

@JoeZiminski

Description

@JoeZiminski
    key = next((key for key in datetime_keys if f"_{key}-" in name), None)

There was a bug in the (pre-existing) code! It will be true when searching for date if there is a datetime flag. Wrapping in _{key}- should stop this from happening.

Originally posted by @JoeZiminski in #510 (comment)

There was a bug caught here in the existing codebase that tests did not catch. Review tests to understand why this was missed + add tests for similar cases.

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