codex-python / fixtures /pattern_lab /tests /test_slugify.py
tailot's picture
Upload folder using huggingface_hub
1600cd6 verified
Raw History Blame Contribute Delete
375 Bytes
"""Tests for src.slugify."""
from src.slugify import add_tag, join_parts
def test_add_tag_collects_one_name_by_default() -> None:
assert add_tag("alpha") == ["alpha"]
assert add_tag("beta", ["gamma"]) == ["gamma", "beta"]
def test_join_parts_uses_its_tuple_default() -> None:
assert join_parts() == "root"
assert join_parts(("a", "b"), sep="/") == "a/b"