Spaces:
Runtime error
Runtime error
Cyril Dupland
feat: implement brand and category slug normalization, update import mappings, and enhance article import processing
1cc158b Download tests/unit/test_category_normalization.py from mlcl-trading/afp-backend: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/mlcl-trading/afp-backend/resolve/main/tests/unit/test_category_normalization.py
- Command line
-
hf download hf://spaces/mlcl-trading/afp-backend/tests/unit/test_category_normalization.py
-
curl -L -o test_category_normalization.py https://huggingface.co/spaces/mlcl-trading/afp-backend/resolve/main/tests/unit/test_category_normalization.py
325 Bytes
| import pytest | |
| from app.domain.category_normalization import normalize_category_slug | |
| def test_normalize_category_slug_replaces_spaces_and_punctuation() -> None: | |
| assert normalize_category_slug(" Outillage Pro ") == "outillage-pro" | |
| assert normalize_category_slug("Sous.Famille") == "sous-famille" | |