Validateur du moteur d'allocation

Valide les modifications de code pour le moteur d'allocation des conseillers, incluant tests, linting et vérification de types.

Spar Skills Guide Bot
TestingIntermédiaire
1022/07/2026
#adviser-allocation#testing#pytest#code-validation#cloud-run

Recommandé pour

Build Validator - adviser_allocation

Validates code changes for the adviser allocation engine.

When to Use

Run after modifying allocation logic, API endpoints, or Firestore interactions.

Commands

# Run tests with coverage
pytest tests/ -v --cov=src/adviser_allocation

# Lint check
uv run ruff check src/ tests/

# Type check
mypy src/

Key Test Areas

  • Allocation algorithm: tests/test_allocation.py
  • API endpoints: tests/test_api.py
  • Firestore operations: tests/test_firestore.py
  • Employment Hero sync: tests/test_eh_sync.py

Deployment Note

This repo deploys to Cloud Run. CI/CD auto-deploys on push to main if tests pass.

Skills similaires