afp-backend / tests /unit /test_category_normalization.py
Cyril Dupland
feat: implement brand and category slug normalization, update import mappings, and enhance article import processing
1cc158b
Raw
History Blame Contribute Delete
325 Bytes
import pytest
from app.domain.category_normalization import normalize_category_slug
@pytest.mark.unit
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"