Spaces:
Sleeping
Sleeping
Commit History
-
Step 8: add 28 automated tests covering preprocessing, models, and API
28 tests across 3 files — all passing: - tests/test_preprocessing.py: verifies splits, scaler, SMOTE balance, no NaN - tests/test_model.py: verifies all models load, predict correctly, probabilities valid - tests/test_api.py: verifies health, predict, schema, edge cases, and 422 validation Also fixes src/api/main.py to load model and scaler at module level so tests work correctlya2bc2a9