Files
L'électron rare f55093d6fe
ESP-IDF CI / Host Tests (Unity) (push) Successful in 1m8s
CI / firmware-native (push) Successful in 2m57s
Rust Protection Tests / Cargo test (host) (push) Failing after 3m21s
ESP-IDF CI / ESP-IDF Build (v5.4) (push) Failing after 6m55s
ESP-IDF CI / Memory Budget Gate (push) Has been skipped
qa-cicd-environments / qa-kxkm-s3-build (push) Successful in 8m53s
qa-cicd-environments / qa-sim-host (push) Successful in 2m2s
qa-cicd-environments / qa-kxkm-s3-memory-budget (push) Successful in 11m17s
chore: import KXKM Batterie Parallelator
Context: the project archive (KXKM_Batterie_Parallelator-main) had
no git history locally; a fresh repository is needed to host it on
git.saillant.cc (electron/KXKM_Batterie_Parallelator).

Approach: initialize a new repo on branch main, stage the archive
content, and harden .gitignore before the first commit.

Changes:
- Import the full project tree: firmware/, firmware-idf/,
  firmware-rs/, iosApp/, kxkm-bmu-app/, kxkm-api/, hardware/,
  docs/, specs/, scripts/, models/, tests/
- Keep project dotfiles tracked despite the trailing '.*' ignore
  rule: .github/, .claude/, .superpowers/, .gitattributes,
  .markdownlint.json
- Extend .gitignore: firmware/src/credentials.h (local secrets,
  template kept), kxkm-bmu-app/**/build/ (66 MB compiled iOS
  framework), .remember/ (session data)

Impact: the project can now be maintained on the self-hosted Gitea
forge with a clean, secret-free initial history.
2026-07-04 12:32:28 +02:00

58 lines
1.3 KiB
Python

"""Shared fixtures for LLM diagnostic tests."""
import pytest
@pytest.fixture
def healthy_scores() -> dict:
return {
"battery": 3,
"fleet_size": 12,
"soh_score": 92.0,
"rul_days": 280,
"anomaly_score": 0.05,
"r_ohmic_mohm": 14.2,
"r_total_mohm": 20.1,
"r_int_trend_mohm_per_day": 0.02,
"v_avg_mv": 27200,
"i_avg_a": 4.5,
"cycle_count": 150,
"fleet_health_pct": 91.0,
}
@pytest.fixture
def critical_scores() -> dict:
return {
"battery": 7,
"fleet_size": 16,
"soh_score": 42.0,
"rul_days": 12,
"anomaly_score": 0.85,
"r_ohmic_mohm": 68.5,
"r_total_mohm": 102.3,
"r_int_trend_mohm_per_day": 1.2,
"v_avg_mv": 24100,
"i_avg_a": 1.2,
"cycle_count": 1800,
"fleet_health_pct": 62.0,
}
@pytest.fixture
def warning_scores() -> dict:
return {
"battery": 5,
"fleet_size": 10,
"soh_score": 73.0,
"rul_days": 85,
"anomaly_score": 0.35,
"r_ohmic_mohm": 28.0,
"r_total_mohm": 40.5,
"r_int_trend_mohm_per_day": 0.12,
"v_avg_mv": 26000,
"i_avg_a": 3.0,
"cycle_count": 600,
"fleet_health_pct": 78.0,
}