Spaces:
Runtime error
Runtime error
Download tests/test_data.py from ba-ameth/dog-breed-classifier: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/ba-ameth/dog-breed-classifier/resolve/main/tests/test_data.py
- Command line
-
hf download hf://spaces/ba-ameth/dog-breed-classifier/tests/test_data.py
-
curl -L -o test_data.py https://huggingface.co/spaces/ba-ameth/dog-breed-classifier/resolve/main/tests/test_data.py
523 Bytes
| """Tests de la couche données — chargement et split.""" | |
| from pathlib import Path | |
| import pytest | |
| from dog_breed_classifier.config import PROCESSED_DATA_DIR | |
| def test_processed_splits_exist(): | |
| """Les splits train/val/test doivent exister après le preprocessing.""" | |
| for split in ("train", "val", "test"): | |
| assert (PROCESSED_DATA_DIR / split).exists(), ( | |
| f"Split '{split}' introuvable dans {PROCESSED_DATA_DIR}. " | |
| "Lance d'abord : python -m dog_breed_classifier.features" | |
| ) | |