Spaces:
Sleeping
Sleeping
Tests
Pytest test suite for all modules.
Running
# Run all tests
python -m pytest tests/ -v
# Run specific module
python -m pytest tests/test_features.py -v
# Run with coverage
python -m pytest tests/ --cov=src
Test Files
| File | Module | Tests |
|---|---|---|
test_data.py |
Data preprocessing | Transforms, channel handling, dataset loading |
test_features.py |
Feature extraction | CLIP embedding, batch processing |
test_retrieval.py |
FAISS index | Build, search, save/load |
test_multimodal.py |
Multi-modal retrieval | Same-modal, cross-modal queries |
test_evaluation.py |
Metrics | F1@K computation |
test_ui.py |
Gradio UI | App creation, retrieval function |