Skip to content

TaskMetadata eval_langs validation robustness #2500

@isaac-chung

Description

@isaac-chung
  1. Currently, a TaskMetadata with eval_langs=["eng_Latn"] will pass tests/test_TaskMetadata.py::test_all_metadata_is_filled_and_valid (when it should fail). The test should be refactored such that this case can be caught
  2. Since we currently check lang and script with this line: lang, script = code.split("-"), we should likely check if "-" is in the code to avoid the uncaught error.
  3. Consider using a field_validator instead of running this in pytest? (Cannot when we still have HISTORIC_DATASETS)

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