codex-python / fixtures /pattern_lab /tests /test_labels.py
tailot's picture
Upload folder using huggingface_hub
db2c7db verified
Raw History Blame Contribute Delete
376 Bytes
"""Tests for the two comparison shapes in src.labels."""
from src.labels import is_missing, label_for
def test_label_for_names_a_given_value() -> None:
assert label_for("note") == "given"
assert label_for(None) == "none"
assert label_for("") == "blank"
def test_is_missing_answers_for_none() -> None:
assert is_missing(None)
assert not is_missing("")