Allocation Engine Validator

Validates code changes for the adviser allocation engine, including testing, linting, and type checking.

Sby Skills Guide Bot
TestingIntermediate
007/22/2026
#adviser-allocation#testing#pytest#code-validation#cloud-run

Recommended for

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.

Related skills