Download fixtures/pattern_lab/tests/test_slugify.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_slugify.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/pattern_lab/tests/test_slugify.py
-
curl -L -o test_slugify.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_slugify.py
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" | |